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

123456

/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypePropagation.cpp944 const LangOptions &LangOpts = BRC.getASTContext().getLangOpts(); local
949 QualType::print(*TrackedType, Qualifiers(), OS, LangOpts, llvm::Twine());
955 Qualifiers(), OS, LangOpts, llvm::Twine());
958 LangOpts, llvm::Twine());
963 Qualifiers(), OS, LangOpts, llvm::Twine());
966 LangOpts, llvm::Twine());
/freebsd-11-stable/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp2510 LangOptions LangOpts;
2517 LangOpts.CPlusPlus = 1;
2518 LangOpts.CPlusPlus11 = LexingStd >= FormatStyle::LS_Cpp11;
2519 LangOpts.CPlusPlus14 = LexingStd >= FormatStyle::LS_Cpp14;
2520 LangOpts.CPlusPlus17 = LexingStd >= FormatStyle::LS_Cpp17;
2521 LangOpts.CPlusPlus2a = LexingStd >= FormatStyle::LS_Cpp20;
2523 LangOpts.LineComment = 1;
2525 LangOpts.CXXOperatorNames = AlternativeOperators ? 1 : 0;
2526 LangOpts.Bool = 1;
2527 LangOpts
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DTokens.cpp419 const SourceManager &SM, const LangOptions &LangOpts)
421 LangOpts(LangOpts) {
580 File.SpelledTokens = tokenize(FID, SM, LangOpts);
589 const LangOptions &LangOpts; member in class:TokenCollector::Builder
418 Builder(std::vector<syntax::Token> Expanded, PPExpansions CollectedExpansions, const SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp50 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts);
148 FPFeatures(pp.getLangOpts()), LangOpts(pp.getLangOpts()), PP(pp),
154 LangOpts.getMSPointerToMemberRepresentationMethod()),
155 VtorDispStack(LangOpts.getVtorDispMode()), PackStack(0),
955 if (LangOpts.OpenMP)
1056 if (LangOpts.CPlusPlus11 &&
1610 if (LangOpts.OpenMP)
1611 return LangOpts.OpenMPIsDevice ? diagIfOpenMPDeviceCode(Loc, DiagID)
1679 if (LangOpts.OpenMP)
1785 if (LangOpts
[all...]
H A DSemaCodeComplete.cpp1644 static void AddTypeSpecifierResults(const LangOptions &LangOpts, argument
1662 if (LangOpts.C99) {
1672 if (LangOpts.CPlusPlus) {
1675 Result("bool", CCP_Type + (LangOpts.ObjC ? CCD_bool_in_ObjC : 0)));
1687 if (LangOpts.CPlusPlus11) {
1702 if (LangOpts.GNUKeywords) {
1727 const LangOptions &LangOpts,
1736 if (LangOpts.CPlusPlus11) {
1753 const LangOptions &LangOpts,
1759 if (LangOpts
1726 AddStorageSpecifiers(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts, ResultBuilder &Results) argument
1752 AddFunctionSpecifiers(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts, ResultBuilder &Results) argument
1810 WantTypesInContext(Sema::ParserCompletionContext CCC, const LangOptions &LangOpts) argument
1908 AddStaticAssertResult(CodeCompletionBuilder &Builder, ResultBuilder &Results, const LangOptions &LangOpts) argument
2882 GetDefaultValueString(const ParmVarDecl *Param, const SourceManager &SM, const LangOptions &LangOpts) argument
3723 getMacroUsagePriority(StringRef MacroName, const LangOptions &LangOpts, bool PreferredTypeIsPointer) argument
3889 AddPrettyFunctionResults(const LangOptions &LangOpts, ResultBuilder &Results) argument
4311 AddLambdaCompletion(ResultBuilder &Results, llvm::ArrayRef<QualType> Parameters, const LangOptions &LangOpts) argument
4938 AddTypeQualifierResults(DeclSpec &DS, ResultBuilder &Results, const LangOptions &LangOpts) argument
5792 AddObjCImplementationResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument
5815 AddObjCInterfaceResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument
6012 AddObjCVisibilityResults(const LangOptions &LangOpts, ResultBuilder &Results, bool NeedAt) argument
[all...]
H A DSemaType.cpp2175 S.LangOpts.GNUMode ||
2176 S.LangOpts.OpenCL).isInvalid();
3451 if (Init.empty() && S.LangOpts.CPlusPlus11)
4155 const LangOptions &LangOpts = S.getLangOpts(); local
4532 if (!LangOpts.Blocks)
4533 S.Diag(DeclType.Loc, diag::err_blocks_disable) << LangOpts.OpenCL;
4541 if (DeclType.Cls.TypeQuals || LangOpts.OpenCL) {
4544 if (LangOpts.OpenCL)
4552 if (LangOpts.CPlusPlus && S.CheckDistantExceptionSpec(T)) {
4563 if (LangOpts
[all...]
H A DSemaOpenMP.cpp1468 if (SemaRef.LangOpts.OpenMP <= 31) {
1624 assert(S.LangOpts.OpenMP && S.LangOpts.OpenMPIsDevice &&
1641 assert(LangOpts.OpenMP && LangOpts.OpenMPIsDevice &&
1667 assert(LangOpts.OpenMP && !LangOpts.OpenMPIsDevice &&
1690 assert(LangOpts.OpenMP && LangOpts.OpenMPIsDevice &&
1733 assert(LangOpts
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h125 const LangOptions LangOpts; member in class:clang::ento::CheckerManager
131 : Context(Context), LangOpts(Context.getLangOpts()), AOptions(AOptions) {}
142 const LangOptions &getLangOpts() const { return LangOpts; }
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp21 const LangOptions &LangOpts) {
28 R.getEnd(), tok::raw_identifier, SM, LangOpts,
20 getLexicalDeclRange(Decl *D, const SourceManager &SM, const LangOptions &LangOpts) argument
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp104 : LangOpts(new LangOptions()), TargetOpts(new TargetOptions()),
110 : LangOpts(new LangOptions(*X.getLangOpts())),
3523 LangOptions &LangOpts = *Res.getLangOpts(); local
3555 ParseCommentArgs(LangOpts.CommentOpts, Args);
3559 LangOpts.IsHeaderFile);
3568 // ObjCAAutoRefCount and Sanitize LangOpts are used to setup the
3572 LangOpts.ObjCAutoRefCount = 1;
3575 LangOpts.PICLevel = getLastArgIntValue(Args, OPT_pic_level, 0, Diags);
3576 LangOpts.PIE = Args.hasArg(OPT_pic_is_pie);
3578 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.cpp92 void AddDefaultCPlusPlusIncludePaths(const LangOptions &LangOpts,
373 const LangOptions &LangOpts, const llvm::Triple &triple,
372 AddDefaultCPlusPlusIncludePaths( const LangOptions &LangOpts, const llvm::Triple &triple, const HeaderSearchOptions &HSOpts) argument
H A DCompilerInstance.cpp1025 static Language getLanguageFromOptions(const LangOptions &LangOpts) { argument
1026 if (LangOpts.OpenCL)
1028 if (LangOpts.CUDA)
1030 if (LangOpts.ObjC)
1031 return LangOpts.CPlusPlus ? Language::ObjCXX : Language::ObjC;
1032 return LangOpts.CPlusPlus ? Language::CXX : Language::C;
/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DInternals.h45 SourceManager &SM, const LangOptions &LangOpts);
H A DTransforms.cpp539 const LangOptions &LangOpts = pass.Ctx.getLangOpts(); local
544 SM, LangOpts, &Invalid);
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DTargetInfo.h276 virtual llvm::SyncScope::ID getLLVMSyncScopeID(const LangOptions &LangOpts,
H A DCGBlocks.cpp114 const CGBlockInfo &BlockInfo, const LangOptions &LangOpts,
1690 const LangOptions &LangOpts) {
1735 if (!QS.getObjCLifetime() && !LangOpts.ObjCAutoRefCount)
1747 const LangOptions &LangOpts);
1751 const CGBlockInfo &BlockInfo, const LangOptions &LangOpts,
1760 auto CopyInfo = computeCopyInfoForBlockCapture(CI, VT, LangOpts);
1761 auto DisposeInfo = computeDestroyInfoForBlockCapture(CI, VT, LangOpts);
2142 const LangOptions &LangOpts) {
2168 !LangOpts.ObjCAutoRefCount)
1689 computeCopyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T, const LangOptions &LangOpts) argument
1750 findBlockCapturedManagedEntities( const CGBlockInfo &BlockInfo, const LangOptions &LangOpts, SmallVectorImpl<BlockCaptureManagedEntity> &ManagedCaptures) argument
2141 computeDestroyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T, const LangOptions &LangOpts) argument
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Frontend/
H A DPrecompiledPreamble.h40 PreambleBounds ComputePreambleBounds(const LangOptions &LangOpts,
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp85 : PPOpts(std::move(PPOpts)), Diags(&diags), LangOpts(opts),
135 if(LangOpts.Borland) {
212 Identifiers.AddKeywords(LangOpts);
765 const LangOptions &LangOpts) {
768 if (LangOpts.CPlusPlus)
764 getFutureCompatDiagKind(const IdentifierInfo &II, const LangOptions &LangOpts) argument
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp65 const LangOptions &LangOpts; member in class:__anon525::RewriteObjC
225 New->printPretty(S, nullptr, PrintingPolicy(LangOpts));
450 if (!LangOpts.ObjC)
580 : Diags(D), LangOpts(LOpts), InFileName(inFile), OutFile(std::move(OS)),
1106 if (!LangOpts.MicrosoftExt) {
1701 syncExpr->printPretty(syncExprBuf, nullptr, PrintingPolicy(LangOpts));
2506 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts));
2702 if (LangOpts.MicrosoftExt) {
2797 if (LangOpts.MicrosoftExt) {
3111 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
[all...]
H A DRewriteModernObjC.cpp66 const LangOptions &LangOpts; member in class:__anon522::RewriteModernObjC
274 New->printPretty(S, nullptr, PrintingPolicy(LangOpts));
543 if (!LangOpts.ObjC)
646 : Diags(D), LangOpts(LOpts), InFileName(inFile), OutFile(std::move(OS)),
1272 if (!LangOpts.MicrosoftExt) {
2579 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts));
3271 if (LangOpts.MicrosoftExt) {
3366 if (LangOpts.MicrosoftExt) {
3899 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
3946 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp248 LangOpts.CommentOpts.ParseAllComments) &&
273 LangOpts.CommentOpts.ParseAllComments) ||
467 assert(Comment.isDocumentation() || LangOpts.CommentOpts.ParseAllComments);
890 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.SanitizerBlacklistFiles, SM)),
963 XRayFilter(new XRayFunctionFilter(LangOpts.XRayAlwaysInstrumentFiles,
964 LangOpts
941 isAddrSpaceMapManglingEnabled(const TargetInfo &TI, const LangOptions &LangOpts) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp1193 const LangOptions &LangOpts = Context.getLangOpts(); local
1195 Record.push_back(LangOpts.Name);
1197 Record.push_back(static_cast<unsigned>(LangOpts.get##Name()));
1200 Record.push_back(LangOpts.Sanitize.has(SanitizerKind::ID));
1203 Record.push_back(LangOpts.ModuleFeatures.size());
1204 for (StringRef Feature : LangOpts.ModuleFeatures)
1207 Record.push_back((unsigned) LangOpts.ObjCRuntime.getKind());
1208 AddVersionTuple(LangOpts.ObjCRuntime.getVersion(), Record);
1210 AddString(LangOpts.CurrentModule, Record);
1213 Record.push_back(LangOpts
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h130 virtual bool ReadLanguageOptions(const LangOptions &LangOpts, argument
245 bool ReadLanguageOptions(const LangOptions &LangOpts, bool Complain,
282 bool ReadLanguageOptions(const LangOptions &LangOpts, bool Complain,
1687 const LangOptions &LangOpts,
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Lex/
H A DHeaderSearch.h256 const LangOptions &LangOpts, const TargetInfo *Target);

Completed in 443 milliseconds

123456