Searched refs:LangOpts (Results 76 - 100 of 146) sorted by relevance

123456

/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp106 : LangOpts(new LangOptions()), TargetOpts(new TargetOptions()),
112 : LangOpts(new LangOptions(*X.getLangOpts())),
3705 LangOptions &LangOpts = *Res.getLangOpts(); local
3741 ParseCommentArgs(LangOpts.CommentOpts, Args);
3745 LangOpts.IsHeaderFile);
3754 // ObjCAAutoRefCount and Sanitize LangOpts are used to setup the
3758 LangOpts.ObjCAutoRefCount = 1;
3761 LangOpts.PICLevel = getLastArgIntValue(Args, OPT_pic_level, 0, Diags);
3762 LangOpts.PIE = Args.hasArg(OPT_pic_is_pie);
3764 Diags, LangOpts
[all...]
H A DTextDiagnostic.cpp667 const LangOptions &LangOpts,
669 : DiagnosticRenderer(LangOpts, DiagOpts), OS(OS) {}
841 if (LangOpts.MSCompatibilityVersion &&
842 !LangOpts.isCompatibleWithMSVC(LangOptions::MSVC2012))
855 if (LangOpts.MSCompatibilityVersion &&
856 !LangOpts.isCompatibleWithMSVC(LangOptions::MSVC2015))
890 TokSize = Lexer::MeasureTokenLength(E, SM, LangOpts);
989 const LangOptions &LangOpts) {
1020 EndColNo += Lexer::MeasureTokenLength(End, SM, LangOpts);
1224 highlightRange(*I, LineNo, FID, sourceColMap, CaretLine, SM, LangOpts);
[all...]
H A DInitHeaderSearch.cpp90 void AddDefaultCPlusPlusIncludePaths(const LangOptions &LangOpts,
372 const LangOptions &LangOpts, const llvm::Triple &triple,
371 AddDefaultCPlusPlusIncludePaths( const LangOptions &LangOpts, const llvm::Triple &triple, const HeaderSearchOptions &HSOpts) argument
H A DCompilerInstance.cpp1044 static Language getLanguageFromOptions(const LangOptions &LangOpts) { argument
1045 if (LangOpts.OpenCL)
1047 if (LangOpts.CUDA)
1049 if (LangOpts.ObjC)
1050 return LangOpts.CPlusPlus ? Language::ObjCXX : Language::ObjC;
1051 return LangOpts.CPlusPlus ? Language::CXX : Language::C;
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h129 const LangOptions LangOpts; member in class:clang::ento::CheckerManager
158 CheckerManager(AnalyzerOptions &AOptions, const LangOptions &LangOpts,
170 const LangOptions &getLangOpts() const { return LangOpts; }
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp85 : PPOpts(std::move(PPOpts)), Diags(&diags), LangOpts(opts),
135 if(LangOpts.Borland) {
170 MaxTokens = LangOpts.MaxTokens;
214 Identifiers.AddKeywords(LangOpts);
767 const LangOptions &LangOpts) {
770 if (LangOpts.CPlusPlus)
766 getFutureCompatDiagKind(const IdentifierInfo &II, const LangOptions &LangOpts) argument
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp20 const LangOptions &LangOpts) {
27 R.getEnd(), tok::raw_identifier, SM, LangOpts,
19 getLexicalDeclRange(Decl *D, const SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaCodeComplete.cpp1657 static void AddTypeSpecifierResults(const LangOptions &LangOpts, argument
1675 if (LangOpts.C99) {
1685 if (LangOpts.CPlusPlus) {
1688 Result("bool", CCP_Type + (LangOpts.ObjC ? CCD_bool_in_ObjC : 0)));
1698 if (LangOpts.CPlusPlus11) {
1713 if (LangOpts.GNUKeywords) {
1738 const LangOptions &LangOpts,
1747 if (LangOpts.CPlusPlus11) {
1764 const LangOptions &LangOpts,
1770 if (LangOpts
1737 AddStorageSpecifiers(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts, ResultBuilder &Results) argument
1763 AddFunctionSpecifiers(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts, ResultBuilder &Results) argument
1833 WantTypesInContext(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts) argument
1931 AddStaticAssertResult(CodeCompletionBuilder &Builder, ResultBuilder &Results, const LangOptions &LangOpts) argument
2911 GetDefaultValueString(const ParmVarDecl *Param, const SourceManager &SM, const LangOptions &LangOpts) argument
3755 getMacroUsagePriority(StringRef MacroName, const LangOptions &LangOpts, bool PreferredTypeIsPointer) argument
3921 AddPrettyFunctionResults(const LangOptions &LangOpts, ResultBuilder &Results) argument
4343 AddLambdaCompletion(ResultBuilder &Results, llvm::ArrayRef<QualType> Parameters, const LangOptions &LangOpts) argument
5364 AddTypeQualifierResults(DeclSpec &DS, ResultBuilder &Results, const LangOptions &LangOpts) argument
6322 AddObjCImplementationResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument
6345 AddObjCInterfaceResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument
6542 AddObjCVisibilityResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument
[all...]
H A DSemaOpenMP.cpp1679 if (SemaRef.LangOpts.OpenMP <= 31) {
1847 assert(S.LangOpts.OpenMP && S.LangOpts.OpenMPIsDevice &&
1864 assert(LangOpts.OpenMP && LangOpts.OpenMPIsDevice &&
1895 assert(LangOpts.OpenMP && !LangOpts.OpenMPIsDevice &&
1932 assert(LangOpts.OpenMP && "OpenMP is not allowed");
2055 Level, getVariableCategoryFromDecl(LangOpts, D)) ||
2117 assert(LangOpts
[all...]
H A DSemaAvailability.cpp248 const LangOptions &LangOpts) {
267 bool AllowDollar = LangOpts.DollarIdents;
281 const LangOptions &LangOpts) {
291 Lexer::getLocForEndOfToken(TD->getInnerLocStart(), 0, SM, LangOpts);
247 tryParseObjCMethodName(StringRef Name, SmallVectorImpl<StringRef> &SlotNames, const LangOptions &LangOpts) argument
280 createAttributeInsertion(const NamedDecl *D, const SourceManager &SM, const LangOptions &LangOpts) argument
H A DSemaCUDA.cpp520 if (LangOpts.GPUAllowDeviceInit)
765 if (!LangOpts.CUDAIsDevice)
H A DSemaType.cpp2240 S.LangOpts.GNUMode ||
2241 S.LangOpts.OpenCL).isInvalid();
3598 if (Init.empty() && S.LangOpts.CPlusPlus11)
4302 const LangOptions &LangOpts = S.getLangOpts(); local
4679 if (!LangOpts.Blocks)
4680 S.Diag(DeclType.Loc, diag::err_blocks_disable) << LangOpts.OpenCL;
4688 if (DeclType.Cls.TypeQuals || LangOpts.OpenCL) {
4691 if (LangOpts.OpenCL)
4699 if (LangOpts.CPlusPlus && S.CheckDistantExceptionSpec(T)) {
4710 if (LangOpts
[all...]
H A DSemaDecl.cpp3073 const LangOptions& LangOpts) {
3074 return ((FD->hasAttr<GNUInlineAttr>() || LangOpts.GNUInline) &&
3075 !LangOpts.CPlusPlus &&
5612 Diag(Loc, LangOpts.MicrosoftExt ? diag::warn_member_extra_qualification
7201 (LangOpts.SYCLIsDevice || (LangOpts.OpenMP && LangOpts.OpenMPIsDevice)))
8792 static Scope *getTagInjectionScope(Scope *S, const LangOptions &LangOpts) { argument
8794 (LangOpts.CPlusPlus &&
10905 if (!Redeclaration && LangOpts
3072 canRedefineFunction(const FunctionDecl *FD, const LangOptions& LangOpts) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DTargetInfo.h283 virtual llvm::SyncScope::ID getLLVMSyncScopeID(const LangOptions &LangOpts,
H A DCGBlocks.cpp114 const CGBlockInfo &BlockInfo, const LangOptions &LangOpts,
1615 const LangOptions &LangOpts) {
1660 if (!QS.getObjCLifetime() && !LangOpts.ObjCAutoRefCount)
1672 const LangOptions &LangOpts);
1676 const CGBlockInfo &BlockInfo, const LangOptions &LangOpts,
1685 auto CopyInfo = computeCopyInfoForBlockCapture(CI, VT, LangOpts);
1686 auto DisposeInfo = computeDestroyInfoForBlockCapture(CI, VT, LangOpts);
2069 const LangOptions &LangOpts) {
2095 !LangOpts.ObjCAutoRefCount)
1614 computeCopyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T, const LangOptions &LangOpts) argument
1675 findBlockCapturedManagedEntities( const CGBlockInfo &BlockInfo, const LangOptions &LangOpts, SmallVectorImpl<BlockCaptureManagedEntity> &ManagedCaptures) argument
2068 computeDestroyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T, const LangOptions &LangOpts) argument
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Frontend/
H A DPrecompiledPreamble.h42 PreambleBounds ComputePreambleBounds(const LangOptions &LangOpts,
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DInternals.h47 SourceManager &SM, const LangOptions &LangOpts);
H A DTransforms.cpp540 const LangOptions &LangOpts = pass.Ctx.getLangOpts(); local
545 SM, LangOpts, &Invalid);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp66 const LangOptions &LangOpts; member in class:__anon1907::RewriteModernObjC
274 New->printPretty(S, nullptr, PrintingPolicy(LangOpts));
543 if (!LangOpts.ObjC)
646 : Diags(D), LangOpts(LOpts), InFileName(inFile), OutFile(std::move(OS)),
1273 if (!LangOpts.MicrosoftExt) {
2580 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts));
3273 if (LangOpts.MicrosoftExt) {
3368 if (LangOpts.MicrosoftExt) {
3901 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
3948 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
[all...]
H A DRewriteObjC.cpp65 const LangOptions &LangOpts; member in class:__anon1910::RewriteObjC
225 New->printPretty(S, nullptr, PrintingPolicy(LangOpts));
450 if (!LangOpts.ObjC)
580 : Diags(D), LangOpts(LOpts), InFileName(inFile), OutFile(std::move(OS)),
1107 if (!LangOpts.MicrosoftExt) {
1702 syncExpr->printPretty(syncExprBuf, nullptr, PrintingPolicy(LangOpts));
2507 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts));
2704 if (LangOpts.MicrosoftExt) {
2799 if (LangOpts.MicrosoftExt) {
3113 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp225 LangOpts.CommentOpts.ParseAllComments) &&
250 LangOpts.CommentOpts.ParseAllComments) ||
302 assert(LangOpts.RetainCommentsFromSystemHeaders ||
304 Comments.addComment(RC, LangOpts.CommentOpts, BumpAlloc);
450 assert(Comment.isDocumentation() || LangOpts.CommentOpts.ParseAllComments);
883 if (!LangOpts.CPlusPlus) return nullptr;
942 const LangOptions &LangOpts) {
943 switch (LangOpts.getAddressSpaceMapMangling()) {
961 CanonTemplateTemplateParms(this_()), SourceMgr(SM), LangOpts(LOpts),
962 SanitizerBL(new SanitizerBlacklist(LangOpts
941 isAddrSpaceMapManglingEnabled(const TargetInfo &TI, const LangOptions &LangOpts) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp655 static bool isTokenAtLoc(const SourceManager &SM, const LangOptions &LangOpts, argument
662 LangOpts, &Invalid);
670 const LangOptions &LangOpts = Context.getLangOpts(); local
681 if (isTokenAtLoc(SM, LangOpts, MacroName, Loc))
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangModulesDeclVendor.cpp59 void BeginSourceFile(const clang::LangOptions &LangOpts,
166 const clang::LangOptions &LangOpts, const clang::Preprocessor *PP) {
167 m_diag_printer->BeginSourceFile(LangOpts, PP);
165 BeginSourceFile( const clang::LangOptions &LangOpts, const clang::Preprocessor *PP) argument
/freebsd-13-stable/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp1236 const LangOptions &LangOpts = Context.getLangOpts(); local
1238 Record.push_back(LangOpts.Name);
1240 Record.push_back(static_cast<unsigned>(LangOpts.get##Name()));
1243 Record.push_back(LangOpts.Sanitize.has(SanitizerKind::ID));
1246 Record.push_back(LangOpts.ModuleFeatures.size());
1247 for (StringRef Feature : LangOpts.ModuleFeatures)
1250 Record.push_back((unsigned) LangOpts.ObjCRuntime.getKind());
1251 AddVersionTuple(LangOpts.ObjCRuntime.getVersion(), Record);
1253 AddString(LangOpts.CurrentModule, Record);
1256 Record.push_back(LangOpts
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Lex/
H A DHeaderSearch.h256 const LangOptions &LangOpts, const TargetInfo *Target);

Completed in 661 milliseconds

123456