Home
last modified time | relevance | path

Searched refs:Clang (Results 1 – 25 of 145) sorted by relevance

123456

/freebsd/contrib/llvm-project/clang/lib/Testing/
H A DTestAST.cpp56 void createMissingComponents(CompilerInstance &Clang) { in createMissingComponents() argument
57 if (!Clang.hasDiagnostics()) in createMissingComponents()
58 Clang.createDiagnostics(*llvm::vfs::getRealFileSystem()); in createMissingComponents()
59 if (!Clang.hasFileManager()) in createMissingComponents()
60 Clang.createFileManager(); in createMissingComponents()
61 if (!Clang.hasSourceManager()) in createMissingComponents()
62 Clang.createSourceManager(Clang.getFileManager()); in createMissingComponents()
63 if (!Clang.hasTarget()) in createMissingComponents()
64 Clang.createTarget(); in createMissingComponents()
65 if (!Clang.hasPreprocessor()) in createMissingComponents()
[all …]
/freebsd/contrib/llvm-project/clang/tools/driver/
H A Dcc1_main.cpp248 auto Clang = std::make_unique<CompilerInstance>(std::move(Invocation), in cc1_main() local
251 if (!Clang->getFrontendOpts().TimeTracePath.empty()) { in cc1_main()
253 Clang->getFrontendOpts().TimeTraceGranularity, Argv0, in cc1_main()
254 Clang->getFrontendOpts().TimeTraceVerbose); in cc1_main()
257 if (Clang->getFrontendOpts().PrintSupportedCPUs) in cc1_main()
258 return PrintSupportedCPUs(Clang->getTargetOpts().Triple); in cc1_main()
261 if (Clang->getFrontendOpts().PrintSupportedExtensions) in cc1_main()
262 return PrintSupportedExtensions(Clang->getTargetOpts().Triple); in cc1_main()
265 if (Clang->getFrontendOpts().PrintEnabledExtensions) in cc1_main()
266 return PrintEnabledExtensions(Clang->getTargetOpts()); in cc1_main()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DChainedIncludesSource.cpp125 auto Clang = std::make_unique<CompilerInstance>( in createChainedIncludesSource() local
127 Clang->setDiagnostics(Diags.get()); in createChainedIncludesSource()
128 Clang->setTarget(TargetInfo::CreateTargetInfo( in createChainedIncludesSource()
129 Clang->getDiagnostics(), Clang->getInvocation().getTargetOpts())); in createChainedIncludesSource()
130 Clang->createFileManager(); in createChainedIncludesSource()
131 Clang->createSourceManager(Clang->getFileManager()); in createChainedIncludesSource()
132 Clang->createPreprocessor(TU_Prefix); in createChainedIncludesSource()
133 Clang->getDiagnosticClient().BeginSourceFile(Clang->getLangOpts(), in createChainedIncludesSource()
134 &Clang->getPreprocessor()); in createChainedIncludesSource()
135 Clang->createASTContext(); in createChainedIncludesSource()
[all …]
H A DPrecompiledPreamble.cpp457 auto Clang = std::make_unique<CompilerInstance>(std::move(PreambleInvocation), in Build() local
462 Clang.get()); in Build()
464 Clang->setDiagnostics(&Diagnostics); in Build()
467 if (!Clang->createTarget()) in Build()
470 if (Clang->getFrontendOpts().Inputs.size() != 1 || in Build()
471 Clang->getFrontendOpts().Inputs[0].getKind().getFormat() != in Build()
473 Clang->getFrontendOpts().Inputs[0].getKind().getLanguage() == in Build()
480 ProcessWarningOptions(Diagnostics, Clang->getDiagnosticOpts(), *VFS); in Build()
483 createVFSFromCompilerInvocation(Clang->getInvocation(), Diagnostics, VFS); in Build()
486 Clang->setFileManager(new FileManager(Clang->getFileSystemOpts(), VFS)); in Build()
[all …]
H A DASTUnit.cpp1163 auto Clang = std::make_unique<CompilerInstance>(CCInvocation, in Parse() local
1173 transferASTDataFromCompilerInstance(*Clang); in Parse()
1183 Clang->setFileManager(&*FileMgr); in Parse()
1185 FileMgr = Clang->createFileManager(std::move(VFS)); in Parse()
1189 CICleanup(Clang.get()); in Parse()
1192 std::string(Clang->getFrontendOpts().Inputs[0].getFile()); in Parse()
1196 Clang->setDiagnostics(&getDiagnostics()); in Parse()
1199 if (!Clang->createTarget()) in Parse()
1202 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in Parse()
1204 assert(Clang->getFrontendOpts().Inputs[0].getKind().getFormat() == in Parse()
[all …]
/freebsd/contrib/llvm-project/clang/lib/FrontendTool/
H A DExecuteCompilerInvocation.cpp209 bool ExecuteCompilerInvocation(CompilerInstance *Clang) { in ExecuteCompilerInvocation() argument
211 if (Clang->getFrontendOpts().ShowHelp) { in ExecuteCompilerInvocation()
223 if (Clang->getFrontendOpts().ShowVersion) { in ExecuteCompilerInvocation()
228 Clang->LoadRequestedPlugins(); in ExecuteCompilerInvocation()
234 if (!Clang->getFrontendOpts().LLVMArgs.empty()) { in ExecuteCompilerInvocation()
235 unsigned NumArgs = Clang->getFrontendOpts().LLVMArgs.size(); in ExecuteCompilerInvocation()
239 Args[i + 1] = Clang->getFrontendOpts().LLVMArgs[i].c_str(); in ExecuteCompilerInvocation()
247 AnalyzerOptions &AnOpts = Clang->getAnalyzerOpts(); in ExecuteCompilerInvocation()
252 ento::printCheckerHelp(llvm::outs(), *Clang); in ExecuteCompilerInvocation()
259 ento::printCheckerConfigList(llvm::outs(), *Clang); in ExecuteCompilerInvocation()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Testing/
H A DTestAST.h87 ASTContext &context() { return Clang->getASTContext(); } in context()
88 Sema &sema() { return Clang->getSema(); } in sema()
89 SourceManager &sourceManager() { return Clang->getSourceManager(); } in sourceManager()
90 FileManager &fileManager() { return Clang->getFileManager(); } in fileManager()
91 Preprocessor &preprocessor() { return Clang->getPreprocessor(); } in preprocessor()
101 std::unique_ptr<CompilerInstance> Clang; variable
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DAttr.td26 This section lists attributes which are recognized by Clang, but which are
383 // The Clang spelling implies GNU<name>, CXX11<"clang", name>, and optionally,
384 // C23<"clang", name>. This spelling should be used for any Clang-specific
386 class Clang<string name, bit allowInC = 1, int version = 1>
387 : Spelling<name, "Clang", version> {
391 // This spelling combines the spellings of GCC and Clang for cases where the
837 let Spellings = [Clang<"address_space">];
859 let Spellings = [Clang<"__clang_arm_builtin_alias">];
929 let Spellings = [Clang<"xray_always_instrument">,
930 Clang<"xray_never_instrument">];
[all …]
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreter.cpp88 std::unique_ptr<CompilerInstance> Clang(new CompilerInstance()); in CreateCI() local
93 auto PCHOps = Clang->getPCHContainerOperations(); in CreateCI()
103 Clang->getInvocation(), llvm::ArrayRef(Argv.begin(), Argv.size()), Diags); in CreateCI()
106 if (Clang->getHeaderSearchOpts().UseBuiltinIncludes && in CreateCI()
107 Clang->getHeaderSearchOpts().ResourceDir.empty()) in CreateCI()
108 Clang->getHeaderSearchOpts().ResourceDir = in CreateCI()
112 Clang->createDiagnostics(*llvm::vfs::getRealFileSystem()); in CreateCI()
113 if (!Clang->hasDiagnostics()) in CreateCI()
118 DiagsBuffer->FlushDiagnostics(Clang->getDiagnostics()); in CreateCI()
126 Clang->getPreprocessorOpts().addRemappedFile("<<< inputs >>>", MB); in CreateCI()
[all …]
/freebsd/contrib/libpcap/doc/
H A DREADME.solaris.md12 * GCC 14.2.0 and Clang 19.1.7 work.
18 * GCC 11.2.0 and Clang 14.0.3 work.
24 * GCC 7.5.0 and GCC 10.3.0 work, Clang 9.0.1 works.
42 * Clang 19.1.7 works, GCC 14.2.0 works.
48 * Clang 11.0 works, GCC 11.2 works.
/freebsd/contrib/pam-krb5/m4/
H A Dclang.m41 dnl Determine whether the current compiler is Clang.
3 dnl If the current compiler is Clang, set the shell variable CLANG to yes.
24 [AC_CACHE_CHECK([if the compiler is Clang], [rra_cv_prog_cc_clang],
/freebsd/share/doc/psd/06.Clang/
H A DMakefile1 VOLUME= psd/06.Clang
2 SRCS= Clang.ms
/freebsd/contrib/libarchive/libarchive/
H A Dmodule.modulemap2 * Clang Module Map for libarchive
5 * This file tells the Clang compiler how to treat libarchive as a "module" -
28 * NOTE: This only affects projects using Clang with modules enabled. Traditional
/freebsd/lib/clang/liblldb/
H A DMakefile372 SRCS+= Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
373 SRCS+= Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
374 SRCS+= Plugins/ExpressionParser/Clang/ASTUtils.cpp
375 SRCS+= Plugins/ExpressionParser/Clang/ClangASTImporter.cpp
376 SRCS+= Plugins/ExpressionParser/Clang/ClangASTMetadata.cpp
377 SRCS+= Plugins/ExpressionParser/Clang/ClangASTSource.cpp
378 SRCS+= Plugins/ExpressionParser/Clang/ClangDeclVendor.cpp
379 SRCS+= Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
380 SRCS+= Plugins/ExpressionParser/Clang/ClangExpressionHelper.cpp
381 SRCS+= Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Driver/
H A DClangOptionDocs.td17 Clang command line argument reference
30 string Program = "Clang";
/freebsd/crypto/krb5/src/config/ac-archive/
H A Dax_pthread.m4209 # Are we compiling with Clang?
211 AC_CACHE_CHECK([whether $CC is Clang],
214 # Note that Autoconf sets GCC=yes for Clang as well as GCC
217 [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
230 # Note that for GCC and Clang -pthread generally implies -lpthread,
241 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
349 # Clang needs special handling, because older versions handle the -pthread
354 # Clang takes -pthread; it has never supported any other flag
356 # (Note 1: This will need to be revisited if a system that Clang
366 # However, older versions of Clang make a point of warning the user
[all …]
/freebsd/contrib/unbound/
H A Dax_pthread.m4209 # Are we compiling with Clang?
211 AC_CACHE_CHECK([whether $CC is Clang],
214 # Note that Autoconf sets GCC=yes for Clang as well as GCC
217 [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
230 # Note that for GCC and Clang -pthread generally implies -lpthread,
241 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
364 # Clang needs special handling, because older versions handle the -pthread
369 # Clang takes -pthread; it has never supported any other flag
371 # (Note 1: This will need to be revisited if a system that Clang
381 # However, older versions of Clang make a point of warning the user
[all …]
/freebsd/sys/contrib/openzfs/config/
H A Dax_pthread.m4210 # Are we compiling with Clang?
212 AC_CACHE_CHECK([whether $CC is Clang],
215 # Note that Autoconf sets GCC=yes for Clang as well as GCC
218 [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
231 # Note that for GCC and Clang -pthread generally implies -lpthread,
242 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
350 # Clang needs special handling, because older versions handle the -pthread
355 # Clang takes -pthread; it has never supported any other flag
357 # (Note 1: This will need to be revisited if a system that Clang
367 # However, older versions of Clang make a point of warning the user
[all …]
/freebsd/packages/clang/
H A Dclang.ucl19 comment = "The Clang C, C++, and Objective-C compiler"
22 Clang is a compiler for C, C++, and Objective-C provided by the LLVM project.
/freebsd/sys/contrib/libsodium/m4/
H A Dax_pthread.m4227 # Are we compiling with Clang?
229 AC_CACHE_CHECK([whether $CC is Clang],
232 # Note that Autoconf sets GCC=yes for Clang as well as GCC
235 [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
247 # Clang needs special handling, because older versions handle the -pthread
252 # Clang takes -pthread; it has never supported any other flag
254 # (Note 1: This will need to be revisited if a system that Clang
269 # However, older versions of Clang make a point of warning the user
285 # that build with -Werror. So if the active version of Clang has
288 …AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -p…
/freebsd/contrib/ntp/sntp/libevent/cmake/
H A DCodeCoverage.cmake30 # - Added support for Clang.
75 # Clang version 3.0.0 and greater now supports gcov as well.
76 …MESSAGE(WARNING "Compiler is not GNU gcc! Clang Version 3.0.0 and greater supports gcov as well, b…
78 IF(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
/freebsd/contrib/libevent/cmake/
H A DCodeCoverage.cmake30 # - Added support for Clang.
75 # Clang version 3.0.0 and greater now supports gcov as well.
76 …MESSAGE(WARNING "Compiler is not GNU gcc! Clang Version 3.0.0 and greater supports gcov as well, b…
78 IF(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DClang.h28 class LLVM_LIBRARY_VISIBILITY Clang : public Tool {
106 Clang(const ToolChain &TC, bool HasIntegratedBackend = true);
107 ~Clang() override;
/freebsd/tools/build/options/
H A DWITH_CLANG_FULL2 Clang C/C++ compiler.
H A DWITH_CLANG1 Build the Clang C/C++ compiler during the normal phase of the build.

123456