-
Notifications
You must be signed in to change notification settings - Fork 0
/
header_includes.h
206 lines (175 loc) · 6.65 KB
/
header_includes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
//############################################################################
// ヘッダのインクルード
/*
© 2017 Theoride Technology (http://theolizer.com/) All Rights Reserved.
General Public License Version 3 ("GPLv3")
You may use this file in accordance with the terms and conditions of
GPLv3 published by Free Software Foundation.
Please confirm the contents of GPLv3 at https://www.gnu.org/licenses/gpl.txt .
A copy of GPLv3 is also saved in a LICENSE.TXT file.
General Public License Version 3(以下GPLv3)
Free Software Foundationが公表するGPLv3の使用条件に従って、
あなたはこのファイルを取り扱うことができます。
GPLv3の内容を https://www.gnu.org/licenses/gpl.txt にて確認して下さい。
またGPLv3のコピーをLICENSE.TXTファイルにおいてます。
*/
//############################################################################
#if !defined(THEORIDE_HEADER_INCLUDES_H)
#define THEORIDE_HEADER_INCLUDES_H
#define THEORIDE_INTERNAL_DRIVER
// ***************************************************************************
// インクルード
// ***************************************************************************
#ifdef _MSC_VER // start of disabling MSVC warnings
#pragma warning(push)
#pragma warning(disable:4100 4141 4146 4180 4244 4245 4258 4267 4291 4310 4324 4345 4351 4355 4389 4456 4457 4458 4459 4503 4624 4702 4722 4800 4913 4996)
#endif
#include "avoid-trouble.h"
THEORIDE_INTERNAL_DISABLE_WARNING()
#if defined(__GNUC__)
#pragma GCC diagnostic push
THEORIDE_INTERNAL_PRAGMA(GCC diagnostic ignored "-Wstrict-aliasing")
THEORIDE_INTERNAL_PRAGMA(GCC diagnostic ignored "-Wparentheses")
#endif
//----------------------------------------------------------------------------
// standard library
//----------------------------------------------------------------------------
#include <sstream>
#include <iomanip>
#include <fstream>
#include <sys/stat.h>
#include <bitset>
#include <stack>
#include <chrono>
#include <thread>
#include <map>
#include <forward_list>
#include <limits>
//----------------------------------------------------------------------------
// for Driver
//----------------------------------------------------------------------------
#include <clang/Driver/Compilation.h>
#include <clang/Driver/Driver.h>
#include <clang/Driver/Options.h>
#include <clang/Parse/ParseDiagnostic.h>
#include <clang/Frontend/ChainedDiagnosticConsumer.h>
#include <clang/Frontend/CompilerInvocation.h>
#include <clang/Frontend/SerializedDiagnosticPrinter.h>
#include <clang/Frontend/TextDiagnosticPrinter.h>
#include <llvm/ADT/ArrayRef.h>
#include <llvm/ADT/SmallVector.h>
#include <llvm/Option/ArgList.h>
#include <llvm/Support/Path.h>
#include <llvm/Support/ManagedStatic.h>
#include <llvm/Support/Process.h>
#include <llvm/Support/Program.h>
#include <llvm/Support/StringSaver.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Config/llvm-config.h> // for LLVM_VERSION_*
#define BOOST_ALL_NO_LIB
#define BOOST_NO_EXCEPTIONS
#include <boost/interprocess/sync/file_lock.hpp>
#include <boost/interprocess/sync/sharable_lock.hpp>
#include <boost/interprocess/sync/upgradable_lock.hpp>
#include <boost/interprocess/sync/scoped_lock.hpp>
#include <boost/interprocess/detail/os_thread_functions.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/filesystem.hpp>
//----------------------------------------------------------------------------
// for AST Parse
//----------------------------------------------------------------------------
#include <clang/AST/AST.h>
#include <clang/AST/ASTContext.h>
#include <clang/AST/ASTConsumer.h>
#include <clang/AST/DeclVisitor.h>
#include <clang/Frontend/ASTConsumers.h>
#include <clang/Frontend/FrontendActions.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Lex/Preprocessor.h>
#include <clang/Lex/MacroArgs.h>
#include <clang/Tooling/CommonOptionsParser.h>
#include <clang/Tooling/Tooling.h>
//----------------------------------------------------------------------------
// for Source modify
//----------------------------------------------------------------------------
#include <clang/Rewrite/Core/Rewriter.h>
#include <clang/Rewrite/Frontend/Rewriters.h>
#include <clang/Lex/Lexer.h> // マクロ追跡用
#ifdef _MSC_VER // end of disabling MSVC warnings
#pragma warning(pop)
#endif
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
//----------------------------------------------------------------------------
// 頻繁に使う名称を短縮する
// 当該名称の調査を容易にするため、namespace指令を使わないこと。
//----------------------------------------------------------------------------
using clang::DiagnosticsEngine;
using clang::DiagnosticBuilder;
using clang::DiagnosticIDs;
using clang::DiagnosticConsumer;
using clang::SourceLocation;
using clang::FullSourceLoc;
using clang::FileID;
using clang::FileEntry;
using clang::IntrusiveRefCntPtr;
using clang::SyntaxOnlyAction;
using clang::DiagnosticOptions;
using clang::CompilerInstance;
using clang::ASTContext;
using clang::SourceManager;
using clang::Preprocessor;
using clang::PPCallbacks;
using clang::ASTConsumer;
using clang::DeclVisitor;
using clang::Rewriter;
using clang::NamespaceDecl;
using clang::LinkageSpecDecl;
using clang::DeclContext;
using clang::DeclGroupRef;
using clang::Token;
using clang::MacroDirective;
using clang::MacroDefinition;
using clang::MacroInfo;
using clang::IdentifierTable;
using clang::IdentifierInfo;
using clang::EnumDecl;
using clang::CXXRecordDecl;
using clang::TemplateDecl;
using clang::ClassTemplateDecl;
using clang::ClassTemplateSpecializationDecl;
using clang::FunctionTemplateDecl;
using clang::Decl;
using clang::NamedDecl;
using clang::TagDecl;
using clang::RecordDecl;
using clang::TypedefDecl;
using clang::VarDecl;
using clang::FriendDecl;
using clang::EnumConstantDecl;
using clang::QualType;
using clang::Type;
using clang::RecordType;
using clang::EnumType;
using clang::TemplateTypeParmType;
using clang::TemplateSpecializationType;
using clang::InjectedClassNameType;
using clang::APValue;
using clang::TemplateName;
using clang::AnnotateAttr;
using clang::AttrVec;
using clang::FunctionTemplateSpecializationInfo;
using clang::TemplateArgument;
using clang::TemplateArgumentList;
using clang::Lexer;
using clang::SmallString;
using clang::SmallVector;
using clang::cast;
using clang::dyn_cast;
namespace llvmS=llvm::sys;
namespace clangD=clang::driver;
namespace boostI=boost::interprocess;
namespace boostF=boost::filesystem;
//using theoride::internal::FineTimer;
#endif