HomeSort by relevance Sort by last modified time
    Searched refs:LangOpts (Results 1 - 25 of 111) sorted by null

1 2 3 4 5

  /external/clang/lib/Lex/
PPMacroExpansion.cpp 102 if (LangOpts.MicrosoftExt) {
121 if (LangOpts.Modules) {
125 if (!LangOpts.CurrentModule.empty())
633 if (ArgTokens.size() == ArgTokenStart && !LangOpts.C99)
634 Diag(Tok, LangOpts.CPlusPlus11 ?
    [all...]
Lexer.cpp 112 LangOpts(PP.getLangOpts()) {
122 if (LangOpts.TraditionalCPP)
131 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts,
133 : FileLoc(fileloc), LangOpts(langOpts) {
145 const SourceManager &SM, const LangOptions &langOpts)
146 : FileLoc(SM.getLocForStartOfFile(FID)), LangOpts(langOpts) {
238 const LangOptions &LangOpts, char *Spelling) {
248 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
    [all...]
  /external/clang/include/clang/Lex/
Lexer.h 54 LangOptions LangOpts; // LangOpts enabled by this language (cache).
108 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
115 const SourceManager &SM, const LangOptions &LangOpts);
128 const LangOptions &getLangOpts() const { return LangOpts; }
173 assert((!Val || LexingRawMode || LangOpts.TraditionalCPP) &&
250 const LangOptions &LangOpts,
260 const LangOptions &LangOpts,
274 const LangOptions &LangOpts,
283 const LangOptions &LangOpts);
    [all...]
  /external/clang/tools/libclang/
CXSourceLocation.h 30 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts,
35 CXSourceLocation Result = { { &SM, &LangOpts, },
55 const LangOptions &LangOpts,
CIndexDiagnostic.h 114 const LangOptions &LangOpts;
117 const LangOptions &LangOpts)
119 Diag(Diag), LangOpts(LangOpts) { }
CXStoredDiagnostic.cpp 49 LangOpts, Diag.getLocation());
93 LangOpts,
111 LangOpts, Hint.RemoveRange);
  /external/clang/lib/Frontend/
InitPreprocessor.cpp 293 static void AddObjCXXARCLibstdcxxDefines(const LangOptions &LangOpts,
322 if (LangOpts.ObjCARCWeak) {
345 const LangOptions &LangOpts,
348 if (!LangOpts.MSVCCompat && !LangOpts.TraditionalCPP)
350 if (LangOpts.Freestanding)
355 if (!LangOpts.CPlusPlus) {
356 if (LangOpts.C11)
358 else if (LangOpts.C99)
360 else if (!LangOpts.GNUMode && LangOpts.Digraphs
    [all...]
  /external/clang/lib/Rewrite/Frontend/
RewriteTest.cpp 21 const LangOptions &LangOpts = PP.getLangOpts();
23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts);
  /external/clang/include/clang/Basic/
Attributes.h 37 const LangOptions &LangOpts);
  /external/clang/lib/Basic/
Attributes.cpp 8 const LangOptions &LangOpts) {
IdentifierTable.cpp 75 IdentifierTable::IdentifierTable(const LangOptions &LangOpts,
82 AddKeywords(LangOpts);
125 const LangOptions &LangOpts, IdentifierTable &Table) {
128 else if (LangOpts.CPlusPlus && (Flags & KEYCXX)) AddResult = 2;
129 else if (LangOpts.CPlusPlus11 && (Flags & KEYCXX11)) AddResult = 2;
130 else if (LangOpts.C99 && (Flags & KEYC99)) AddResult = 2;
131 else if (LangOpts.GNUKeywords && (Flags & KEYGNU)) AddResult = 1;
132 else if (LangOpts.MicrosoftExt && (Flags & KEYMS)) AddResult = 1;
133 else if (LangOpts.Borland && (Flags & KEYBORLAND)) AddResult = 1;
134 else if (LangOpts.Bool && (Flags & BOOLSUPPORT)) AddResult = 2
    [all...]
Builtins.cpp 50 const LangOptions &LangOpts) {
51 bool BuiltinsUnsupported = LangOpts.NoBuiltin &&
54 LangOpts.NoMathBuiltin && BuiltinInfo.HeaderName &&
56 bool GnuModeUnsupported = !LangOpts.GNUMode &&
58 bool MSModeUnsupported = !LangOpts.MicrosoftExt &&
60 bool ObjCUnsupported = !LangOpts.ObjC1 &&
70 const LangOptions& LangOpts) {
73 if (BuiltinIsSupported(BuiltinInfo[i], LangOpts)) {
79 if (BuiltinIsSupported(TSRecords[i], LangOpts))
Module.cpp 59 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts,
62 .Case("altivec", LangOpts.AltiVec)
63 .Case("blocks", LangOpts.Blocks)
64 .Case("cplusplus", LangOpts.CPlusPlus)
65 .Case("cplusplus11", LangOpts.CPlusPlus11)
66 .Case("objc", LangOpts.ObjC1)
67 .Case("objc_arc", LangOpts.ObjCAutoRefCount)
68 .Case("opencl", LangOpts.OpenCL)
74 Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target,
85 if (hasFeature(Current->Requirements[I].first, LangOpts, Target) !
    [all...]
  /external/clang/include/clang/Edit/
EditedSource.h 29 const LangOptions &LangOpts;
47 EditedSource(const SourceManager &SM, const LangOptions &LangOpts,
49 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec),
53 const LangOptions &getLangOpts() const { return LangOpts; }
Commit.h 49 const LangOptions &LangOpts;
60 Commit(const SourceManager &SM, const LangOptions &LangOpts,
62 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(nullptr),
  /external/clang/lib/StaticAnalyzer/Core/
PlistDiagnostics.cpp 32 const LangOptions &LangOpts;
37 const LangOptions &LangOpts,
64 LangOpts(LO),
87 const LangOptions &LangOpts,
110 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(StartEdge), FM,
115 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(EndEdge), FM,
139 const LangOptions &LangOpts,
157 EmitLocation(o, SM, LangOpts, L, FM, indent);
168 EmitRange(o, SM, LangOpts, CharSourceRange::getTokenRange(*I), FM,
199 const LangOptions &LangOpts,
    [all...]
  /external/clang/include/clang/AST/
PrettyPrinter.h 38 : LangOpts(LO), Indentation(2), SuppressSpecifiers(false),
48 LangOptions LangOpts;
  /external/clang/include/clang/Frontend/
LogDiagnosticPrinter.h 47 const LangOptions *LangOpts;
69 LangOpts = &LO;
CompilerInvocation.h 57 std::shared_ptr<LangOptions> LangOpts;
76 LangOptions *getLangOpts() { return LangOpts.get(); }
77 const LangOptions *getLangOpts() const { return LangOpts.get(); }
  /external/clang/unittests/Lex/
LexerTest.cpp 69 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
71 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
99 SourceMgr, LangOpts, &Invalid);
110 LangOptions LangOpts;
296 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
298 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts));
299 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts));
300 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc));
304 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts);
307 SourceMgr, LangOpts);
    [all...]
  /external/clang/lib/Edit/
EditedSource.cpp 244 static bool canBeJoined(char left, char right, const LangOptions &LangOpts) {
247 return !(Lexer::isIdentifierBodyChar(left, LangOpts) &&
248 Lexer::isIdentifierBodyChar(right, LangOpts));
254 const LangOptions &LangOpts) {
255 if (!canBeJoined(left, right, LangOpts))
259 if (canBeJoined(beforeWSpace, right, LangOpts))
267 static void adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts,
271 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts);
295 LangOpts))
300 if (!canBeJoined(buffer[begin-1], buffer[end], LangOpts))
    [all...]
  /frameworks/compile/slang/
slang.cpp 104 clang::LangOptions Slang::LangOpts;
152 LangOpts.RTTI = 0; // Turn off the RTTI information support
153 LangOpts.C99 = 1;
154 LangOpts.Renderscript = 1;
155 LangOpts.LaxVectorConversions = 0; // Do not bitcast vectors!
156 LangOpts.CharIsSigned = 1; // Signed char is our default.
205 LangOpts,
212 LangOpts,
245 mASTContext.reset(new clang::ASTContext(LangOpts,
406 mDiagClient->BeginSourceFile(LangOpts, mPP.get())
    [all...]
  /external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
AnalysisManager.h 35 const LangOptions &LangOpts;
92 return LangOpts;
  /external/clang/include/clang/Rewrite/Core/
Rewriter.h 129 const LangOptions *LangOpts;
153 : SourceMgr(&SM), LangOpts(&LO) {}
154 explicit Rewriter() : SourceMgr(nullptr), LangOpts(nullptr) {}
158 LangOpts = &LO;
161 const LangOptions &getLangOpts() const { return *LangOpts; }
  /external/clang/lib/ARCMigrate/
PlistReporter.cpp 38 const LangOptions &LangOpts) {
103 EmitLocation(o, SM, LangOpts, D.getLocation(), FM, 2);
112 EmitRange(o, SM, LangOpts, *RI, FM, 4);

Completed in 288 milliseconds

1 2 3 4 5