/external/clang/lib/Format/ |
H A D | Format.cpp | 2001 LangOptions LangOpts; local 2002 LangOpts.CPlusPlus = 1; 2003 LangOpts.CPlusPlus11 = Standard == FormatStyle::LS_Cpp03 ? 0 : 1; 2004 LangOpts.CPlusPlus1y = Standard == FormatStyle::LS_Cpp03 ? 0 : 1; 2005 LangOpts.LineComment = 1; 2006 LangOpts.CXXOperatorNames = 1; 2007 LangOpts.Bool = 1; 2008 LangOpts.ObjC1 = 1; 2009 LangOpts.ObjC2 = 1; 2010 return LangOpts; [all...] |
/external/clang/lib/Frontend/ |
H A D | CompilerInstance.cpp | 844 static InputKind getSourceInputKindFromOptions(const LangOptions &LangOpts) { argument 845 if (LangOpts.OpenCL) 847 if (LangOpts.CUDA) 849 if (LangOpts.ObjC1) 850 return LangOpts.CPlusPlus? IK_ObjCXX : IK_ObjC; 851 return LangOpts.CPlusPlus? IK_CXX : IK_C;
|
H A D | ASTUnit.cpp | 269 const LangOptions &LangOpts, 282 if (LangOpts.CPlusPlus || !isa<TagDecl>(ND)) 291 if (LangOpts.CPlusPlus) 296 if (LangOpts.CPlusPlus || isa<ObjCInterfaceDecl>(ND)) 308 if (LangOpts.CPlusPlus11) 316 if (LangOpts.CPlusPlus) 514 bool ReadLanguageOptions(const LangOptions &LangOpts, 519 LangOpt = LangOpts; 579 void BeginSourceFile(const LangOptions &LangOpts, 1082 LangOpts 268 getDeclShowContexts(const NamedDecl *ND, const LangOptions &LangOpts, bool &IsNestedNameSpecifier) argument 1295 makeStandaloneRange(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument 1303 makeStandaloneFixIt(const SourceManager &SM, const LangOptions &LangOpts, const FixItHint &InFix, ASTUnit::StandaloneFixIt &OutFix) argument 1314 makeStandaloneDiagnostic(const LangOptions &LangOpts, const StoredDiagnostic &InDiag, ASTUnit::StandaloneDiagnostic &OutDiag) argument 2330 CodeComplete(StringRef File, unsigned Line, unsigned Column, ArrayRef<RemappedFile> RemappedFiles, bool IncludeMacros, bool IncludeCodePatterns, bool IncludeBriefComments, CodeCompleteConsumer &Consumer, DiagnosticsEngine &Diag, LangOptions &LangOpts, SourceManager &SourceMgr, FileManager &FileMgr, SmallVectorImpl<StoredDiagnostic> &StoredDiagnostics, SmallVectorImpl<const llvm::MemoryBuffer *> &OwnedBuffers) argument [all...] |
/external/clang/lib/Lex/ |
H A D | Lexer.cpp | 112 LangOpts(PP.getLangOpts()) { 122 if (LangOpts.TraditionalCPP) 133 : FileLoc(fileloc), LangOpts(langOpts) { 146 : FileLoc(SM.getLocForStartOfFile(FID)), LangOpts(langOpts) { 238 const LangOptions &LangOpts, char *Spelling) { 248 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); 277 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); 333 const LangOptions &LangOpts, bool *Invalid) { 350 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); 366 const LangOptions &LangOpts, boo 237 getSpellingSlow(const Token &Tok, const char *BufPtr, const LangOptions &LangOpts, char *Spelling) argument 364 getSpelling(const Token &Tok, const char *&Buffer, const SourceManager &SourceMgr, const LangOptions &LangOpts, bool *Invalid) argument 412 MeasureTokenLength(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 423 getRawToken(SourceLocation Loc, Token &Result, const SourceManager &SM, const LangOptions &LangOpts, bool IgnoreWhiteSpace) argument 455 getBeginningOfFileToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 515 GetBeginningOfToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 544 ComputePreamble(const llvm::MemoryBuffer *Buffer, const LangOptions &LangOpts, unsigned MaxLines) argument 706 AdvanceToTokenCharacter(SourceLocation TokStart, unsigned CharNo, const SourceManager &SM, const LangOptions &LangOpts) argument 765 getLocForEndOfToken(SourceLocation Loc, unsigned Offset, const SourceManager &SM, const LangOptions &LangOpts) argument 787 isAtStartOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroBegin) argument 809 isAtEndOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts, SourceLocation *MacroEnd) argument 835 makeRangeFromFileLocs(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument 862 makeFileCharRange(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts) argument 926 getSourceText(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts, bool *Invalid) argument 962 getImmediateMacroName(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) argument 1009 isIdentifierBodyChar(char c, const LangOptions &LangOpts) argument 1162 findLocationAfterToken(SourceLocation Loc, tok::TokenKind TKind, const SourceManager &SM, const LangOptions &LangOpts, bool SkipTrailingWhitespaceAndNewLine) argument 1299 getCharAndSizeSlowNoWarn(const char *Ptr, unsigned &Size, const LangOptions &LangOpts) argument 1362 isAllowedIDChar(uint32_t C, const LangOptions &LangOpts) argument 1378 isAllowedInitiallyIDChar(uint32_t C, const LangOptions &LangOpts) argument 1553 isHexaLiteral(const char *Start, const LangOptions &LangOpts) argument [all...] |
H A D | ModuleMap.cpp | 87 const LangOptions &LangOpts, const TargetInfo *Target, 89 : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target), 275 if (RequestingModule && LangOpts.ModulesDeclUse && 305 if (LangOpts.ModulesStrictDeclUse) { 343 if (RequestingModule && LangOpts.ModulesDeclUse && 548 if (LangOpts.CurrentModule == Name) { 554 if (!LangOpts.CurrentModule.empty() && !CompilingModule && 555 Name == LangOpts.CurrentModule) { 686 if (LangOpts 86 ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, const LangOptions &LangOpts, const TargetInfo *Target, HeaderSearch &HeaderInfo) argument 1124 LangOptions LangOpts; local [all...] |
/external/clang/utils/TableGen/ |
H A D | ClangAttrEmitter.cpp | 1774 // If this is the C++11 variety, also add in the LangOpts test. 1776 Test += " && LangOpts.CPlusPlus11"; 1778 // C++11 mode should be checked against LangOpts, which is presumed to be 1780 Test = "LangOpts.CPlusPlus11"; 2270 std::vector<Record *> LangOpts = R.getValueAsListOfDefs("LangOpts"); local 2271 if (LangOpts.empty()) 2279 for (auto I = LangOpts.begin(), E = LangOpts.end(); I != E; ++I) { 2281 Test += "S.LangOpts [all...] |
/external/clang/include/clang/Lex/ |
H A D | Preprocessor.h | 91 LangOptions &LangOpts; member in class:clang::Preprocessor 479 const LangOptions &getLangOpts() const { return LangOpts; } 1025 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid); 1037 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid); 1054 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid); 1069 return Lexer::getRawToken(Loc, Result, SourceMgr, LangOpts, IgnoreWhiteSpace); 1127 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts); 1137 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts, 1148 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd); 1160 return Lexer::AdvanceToTokenCharacter(TokStart, Char, SourceMgr, LangOpts); [all...] |
/external/clang/include/clang/Serialization/ |
H A D | ASTReader.h | 117 virtual bool ReadLanguageOptions(const LangOptions &LangOpts, argument 211 bool ReadLanguageOptions(const LangOptions &LangOpts, bool Complain) override; 243 bool ReadLanguageOptions(const LangOptions &LangOpts, 1454 const LangOptions &LangOpts,
|
/external/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 2032 LangOptions LangOpts; local 2033 edit::EditedSource Editor(SM, LangOpts); 2057 Rewriter rewriter(SM, LangOpts);
|
/external/clang/include/clang/AST/ |
H A D | ASTContext.h | 385 LangOptions &LangOpts; member in class:clang::ASTContext 509 const LangOptions& getLangOpts() const { return LangOpts; } 598 assert(LangOpts.RetainCommentsFromSystemHeaders ||
|
/external/clang/lib/Analysis/ |
H A D | CFG.cpp | 3813 const LangOptions &LangOpts; member in class:__anon17771::StmtPrinterHelper 3817 : currentBlock(0), currStmt(0), LangOpts(LO) 3876 const LangOptions &getLangOpts() const { return LangOpts; }
|
/external/clang/lib/CodeGen/ |
H A D | CGDebugInfo.cpp | 1497 const LangOptions &LangOpts) { 1501 if (!LangOpts.CPlusPlus) 1495 shouldOmitDefinition(CodeGenOptions::DebugInfoKind DebugKind, const RecordDecl *RD, const LangOptions &LangOpts) argument
|
H A D | CodeGenModule.cpp | 78 : Context(C), LangOpts(C.getLangOpts()), CodeGenOpts(CGO), TheModule(M), 112 if (LangOpts.ObjC1) 114 if (LangOpts.OpenCL) 116 if (LangOpts.OpenMP) 118 if (LangOpts.CUDA) 122 if (LangOpts.Sanitize.Thread || 165 switch (LangOpts.ObjCRuntime.getKind()) { 666 static bool hasUnwindExceptions(const LangOptions &LangOpts) { argument 668 if (!LangOpts.Exceptions) return false; 671 if (LangOpts [all...] |
/external/clang/lib/Sema/ |
H A D | SemaCodeComplete.cpp | 1273 static void AddTypeSpecifierResults(const LangOptions &LangOpts, argument 1291 if (LangOpts.C99) { 1301 if (LangOpts.CPlusPlus) { 1304 (LangOpts.ObjC1? CCD_bool_in_ObjC : 0))); 1316 if (LangOpts.CPlusPlus11) { 1330 if (LangOpts.GNUMode) { 1350 const LangOptions &LangOpts, 1361 const LangOptions &LangOpts, 1367 if (LangOpts.CPlusPlus) { 1379 if (LangOpts 1349 AddStorageSpecifiers(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts, ResultBuilder &Results) argument 1360 AddFunctionSpecifiers(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts, ResultBuilder &Results) argument 1420 WantTypesInContext(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts) argument 2884 getMacroUsagePriority(StringRef MacroName, const LangOptions &LangOpts, bool PreferredTypeIsPointer) argument 3008 AddPrettyFunctionResults(const LangOptions &LangOpts, ResultBuilder &Results) argument 4371 AddObjCImplementationResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument 4395 AddObjCInterfaceResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument 4593 AddObjCVisibilityResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument [all...] |
H A D | SemaType.cpp | 1483 S.LangOpts.GNUMode).isInvalid(); 2426 if (Init.empty() && S.LangOpts.CPlusPlus11) 2489 const LangOptions &LangOpts = S.getLangOpts(); local 2561 if (!LangOpts.Blocks) 2571 if (LangOpts.CPlusPlus && S.CheckDistantExceptionSpec(T)) { 2576 if (LangOpts.ObjC1 && T->getAs<ObjCObjectType>()) { 2590 if (LangOpts.CPlusPlus && S.CheckDistantExceptionSpec(T)) { 2604 if (LangOpts.CPlusPlus && S.CheckDistantExceptionSpec(T)) { 2833 if (LangOpts.CPlusPlus && D.getDeclSpec().hasTagDefinition()) { 2855 if (!FTI.NumParams && !FTI.isVariadic && !LangOpts [all...] |
H A D | SemaDecl.cpp | 2351 const LangOptions& LangOpts) { 2352 return ((FD->hasAttr<GNUInlineAttr>() || LangOpts.GNUInline) && 2353 !LangOpts.CPlusPlus && 4301 Diag(Loc, LangOpts.MicrosoftExt ? diag::warn_member_extra_qualification 9299 << LangOpts.CPlusPlus << MagicValueExpr->getSourceRange(); 9305 << LangOpts.CPlusPlus << MagicValueExpr->getSourceRange(); 9588 if (LangOpts.NumLargeByValueCopy == 0) // No check. 9595 if (Size > LangOpts.NumLargeByValueCopy) 9607 if (Size > LangOpts.NumLargeByValueCopy) 10111 (LangOpts 2350 canRedefineFunction(const FunctionDecl *FD, const LangOptions& LangOpts) argument [all...] |
/external/clang/lib/Rewrite/Frontend/ |
H A D | RewriteObjC.cpp | 64 const LangOptions &LangOpts; member in class:__anon17975::RewriteObjC 233 New->printPretty(S, nullptr, PrintingPolicy(LangOpts)); 458 if (!LangOpts.ObjC1 && !LangOpts.ObjC2) 590 : Diags(D), LangOpts(LOpts), InFileName(inFile), OutFile(OS), 1113 if (!LangOpts.MicrosoftExt) { 1702 syncExpr->printPretty(syncExprBuf, nullptr, PrintingPolicy(LangOpts)); 2513 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts)); 2716 if (LangOpts.MicrosoftExt) { 2816 if (LangOpts [all...] |
H A D | RewriteModernObjC.cpp | 64 const LangOptions &LangOpts; member in class:__anon17972::RewriteModernObjC 284 New->printPretty(S, nullptr, PrintingPolicy(LangOpts)); 558 if (!LangOpts.ObjC1 && !LangOpts.ObjC2) 660 : Diags(D), LangOpts(LOpts), InFileName(inFile), OutFile(OS), 1311 if (!LangOpts.MicrosoftExt) { 2614 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts)); 3339 if (LangOpts.MicrosoftExt) { 3439 if (LangOpts.MicrosoftExt) { 4006 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts); [all...] |
/external/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 83 bool ChainedASTReaderListener::ReadLanguageOptions(const LangOptions &LangOpts, argument 85 return First->ReadLanguageOptions(LangOpts, Complain) || 86 Second->ReadLanguageOptions(LangOpts, Complain); 160 static bool checkLanguageOptions(const LangOptions &LangOpts, argument 164 if (ExistingLangOpts.Name != LangOpts.Name) { \ 167 << Description << LangOpts.Name << ExistingLangOpts.Name; \ 172 if (ExistingLangOpts.Name != LangOpts.Name) { \ 180 if (ExistingLangOpts.get##Name() != LangOpts.get##Name()) { \ 191 if (ExistingLangOpts.ObjCRuntime != LangOpts.ObjCRuntime) { 199 LangOpts 280 ReadLanguageOptions(const LangOptions &LangOpts, bool Complain) argument 455 checkPreprocessorOptions(const PreprocessorOptions &PPOpts, const PreprocessorOptions &ExistingPPOpts, DiagnosticsEngine *Diags, FileManager &FileMgr, std::string &SuggestedPredefines, const LangOptions &LangOpts) argument 4183 isAcceptableASTFile(StringRef Filename, FileManager &FileMgr, const LangOptions &LangOpts, const TargetOptions &TargetOpts, const PreprocessorOptions &PPOpts) argument 4552 LangOptions LangOpts; local [all...] |
H A D | ASTWriter.cpp | 1108 const LangOptions &LangOpts = Context.getLangOpts(); local 1110 Record.push_back(LangOpts.Name); 1112 Record.push_back(static_cast<unsigned>(LangOpts.get##Name())); 1114 #define SANITIZER(NAME, ID) Record.push_back(LangOpts.Sanitize.ID); 1117 Record.push_back((unsigned) LangOpts.ObjCRuntime.getKind()); 1118 AddVersionTuple(LangOpts.ObjCRuntime.getVersion(), Record); 1120 Record.push_back(LangOpts.CurrentModule.size()); 1121 Record.append(LangOpts.CurrentModule.begin(), LangOpts.CurrentModule.end()); 1124 Record.push_back(LangOpts [all...] |
/external/clang/tools/libclang/ |
H A D | CIndex.cpp | 138 const LangOptions &LangOpts, 147 SM, LangOpts); 152 { &SM, &LangOpts }, 137 translateSourceRange(const SourceManager &SM, const LangOptions &LangOpts, const CharSourceRange &R) argument
|
/external/clang/include/clang/Sema/ |
H A D | Sema.h | 239 const LangOptions &LangOpts; member in class:clang::Sema 943 const LangOptions &getLangOpts() const { return LangOpts; }
|
/external/clang/lib/AST/ |
H A D | ASTContext.cpp | 180 LangOpts.CommentOpts.ParseAllComments); 678 if (!LangOpts.CPlusPlus) return nullptr; 713 const LangOptions &LangOpts) { 714 switch (LangOpts.getAddressSpaceMapMangling()) { 744 SourceMgr(SM), LangOpts(LOpts), 911 assert(LangOpts.CPlusPlus && "should only be called for c++"); 932 AddrSpaceMap = getAddressSpaceMap(Target, LangOpts); 933 AddrSpaceMapMangling = isAddrSpaceMapManglingEnabled(Target, LangOpts); 941 if (LangOpts.CharIsSigned) 973 if (LangOpts 712 isAddrSpaceMapManglingEnabled(const TargetInfo &TI, const LangOptions &LangOpts) argument [all...] |