Home
last modified time | relevance | path

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

12345678910>>...23

/llvm-project-15.0.7/clang/lib/Testing/
H A DTestAST.cpp55 if (!Clang.hasDiagnostics()) in createMissingComponents()
56 Clang.createDiagnostics(); in createMissingComponents()
57 if (!Clang.hasFileManager()) in createMissingComponents()
60 Clang.createSourceManager(Clang.getFileManager()); in createMissingComponents()
61 if (!Clang.hasTarget()) in createMissingComponents()
62 Clang.createTarget(); in createMissingComponents()
67 if (!Clang.hasASTContext()) in createMissingComponents()
68 Clang.createASTContext(); in createMissingComponents()
69 if (!Clang.hasSema()) in createMissingComponents()
146 Clang.reset(); in clear()
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/interface/
H A Dextract_interface.cc376 Clang->createPreprocessor(); in create_preprocessor()
459 Clang->setInvocation(invocation); in set_invocation()
539 create_diagnostics(Clang); in main()
543 Clang->setTarget(target); in main()
544 set_lang_defaults(Clang); in main()
548 set_invocation(Clang, invocation); in main()
549 Clang->createFileManager(); in main()
550 Clang->createSourceManager(Clang->getFileManager()); in main()
569 create_preprocessor(Clang); in main()
578 Clang->createASTContext(); in main()
[all …]
/llvm-project-15.0.7/clang/tools/driver/
H A Dcc1_main.cpp191 auto PCHOps = Clang->getPCHContainerOperations(); in cc1_main()
215 if (Clang->getFrontendOpts().TimeTrace || in cc1_main()
217 Clang->getFrontendOpts().TimeTrace = 1; in cc1_main()
222 if (Clang->getFrontendOpts().PrintSupportedCPUs) in cc1_main()
228 Clang->getHeaderSearchOpts().ResourceDir = in cc1_main()
232 Clang->createDiagnostics(); in cc1_main()
233 if (!Clang->hasDiagnostics()) in cc1_main()
243 Clang->getDiagnosticClient().finish(); in cc1_main()
274 Clang->clearOutputFiles(false); in cc1_main()
284 if (Clang->getFrontendOpts().DisableFree) { in cc1_main()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/
H A DChainedIncludesSource.cpp151 Clang->setDiagnostics(Diags.get()); in createChainedIncludesSource()
153 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in createChainedIncludesSource()
154 Clang->createFileManager(); in createChainedIncludesSource()
155 Clang->createSourceManager(Clang->getFileManager()); in createChainedIncludesSource()
156 Clang->createPreprocessor(TU_Prefix); in createChainedIncludesSource()
157 Clang->getDiagnosticClient().BeginSourceFile(Clang->getLangOpts(), in createChainedIncludesSource()
159 Clang->createASTContext(); in createChainedIncludesSource()
164 Clang->getPreprocessor(), Clang->getModuleCache(), "-", /*isysroot=*/"", in createChainedIncludesSource()
193 Clang->setASTReader(Reader); in createChainedIncludesSource()
200 ParseAST(Clang->getSema()); in createChainedIncludesSource()
[all …]
H A DPrecompiledPreamble.cpp444 std::unique_ptr<CompilerInstance> Clang( in Build() local
449 Clang.get()); in Build()
452 Clang->setDiagnostics(&Diagnostics); in Build()
455 if (!Clang->createTarget()) in Build()
474 Clang->setFileManager(new FileManager(Clang->getFileSystemOpts(), VFS)); in Build()
477 Clang->setSourceManager( in Build()
503 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) in Build()
508 Callbacks.BeforeExecute(*Clang); in Build()
520 Clang->getSourceManager())); in Build()
526 Callbacks.AfterExecute(*Clang); in Build()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DParsedAST.cpp124 auto &PP = Clang.getPreprocessor(); in attach()
131 Clang.getLangOpts(), PB))); in attach()
391 auto Clang = prepareCompilerInstance( in build() local
395 if (!Clang) { in build()
586 Includes.collect(*Clang); in build()
621 L->beforeExecute(*Clang); in build()
700 return Clang->getASTContext(); in getASTContext()
708 return Clang->getPreprocessorPtr(); in getPreprocessorPtr()
712 return Clang->getPreprocessor(); in getPreprocessor()
771 : Version(Version), Preamble(std::move(Preamble)), Clang(std::move(Clang)), in ParsedAST()
[all …]
H A DCompiler.cpp139 auto Clang = std::make_unique<CompilerInstance>( in prepareCompilerInstance() local
141 Clang->setInvocation(std::move(CI)); in prepareCompilerInstance()
142 Clang->createDiagnostics(&DiagsClient, false); in prepareCompilerInstance()
145 Clang->getInvocation(), Clang->getDiagnostics(), VFS)) in prepareCompilerInstance()
147 Clang->createFileManager(VFS); in prepareCompilerInstance()
149 if (!Clang->createTarget()) in prepareCompilerInstance()
155 return Clang; in prepareCompilerInstance()
/llvm-project-15.0.7/clang/lib/Interpreter/
H A DInterpreter.cpp70 auto PCHOps = Clang->getPCHContainerOperations(); in CreateCI()
86 Clang->getHeaderSearchOpts().ResourceDir = in CreateCI()
90 Clang->createDiagnostics(); in CreateCI()
91 if (!Clang->hasDiagnostics()) in CreateCI()
106 Clang->setTarget(TargetInfo::CreateTargetInfo( in CreateCI()
107 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in CreateCI()
108 if (!Clang->hasTarget()) in CreateCI()
113 Clang->getTarget().adjust(Clang->getDiagnostics(), Clang->getLangOpts()); in CreateCI()
119 Clang->getFrontendOpts().DisableFree = false; in CreateCI()
120 Clang->getCodeGenOpts().DisableFree = false; in CreateCI()
[all …]
/llvm-project-15.0.7/clang/
H A DINSTALL.txt2 // Clang Installation Instructions
5 These instructions describe how to build and install Clang.
11 Clang is designed to be built as part of an LLVM build. Assuming that the LLVM
27 Assuming you installed clang at $LLVM_SRC_ROOT/tools/clang then Clang will
28 automatically be built with LLVM. Otherwise, run 'make' in the Clang source
29 directory to build Clang.
35 It is a good idea to run the Clang tests to make sure your build works
36 correctly. From inside the Clang build directory, run 'make test' to run the
40 // Step 4: Install Clang
43 From inside the Clang build directory, run 'make install' to install the Clang
[all …]
H A DREADME.txt5 Welcome to Clang. This is a compiler front-end for the C family of languages
9 Unlike many other compiler frontends, Clang is useful for a number of things
10 beyond just compiling code: we intend for Clang to be host to a number of
11 different source-level tools. One example of this is the Clang Static Analyzer.
13 If you're interested in more (including how to build Clang) it is best to read
16 Information on Clang: http://clang.llvm.org/
17 Building and using Clang: http://clang.llvm.org/get_started.html
18 Clang Static Analyzer: http://clang-analyzer.llvm.org/
21 If you have questions or comments about Clang, a great place to discuss them is
22 on the Clang forums:
[all …]
/llvm-project-15.0.7/llvm/docs/
H A DHowToBuildWithPGO.rst2 How To Build Clang and LLVM with Profile-Guided Optimizations
9 for how it actually runs. Users report that applying this to Clang and LLVM can
28 tested on a few Linux flavors, and requires a checkout of LLVM, Clang, and
52 - runs all of Clang and LLVM's lit tests, and
53 - uses the instrumented Clang to build Clang, LLVM, and all of the other
70 Building Clang with PGO
74 how to build Clang/LLVM with PGO.
82 2. Build Clang using the Clang you built above, but with instrumentation
97 another Clang. Because you need Clang and supporting libraries, you'll want
100 2. Configure a Clang build as above, but add the following CMake args:
[all …]
/llvm-project-15.0.7/clang/docs/
H A DClangTools.rst5 Clang Tools are standalone command line (and potentially GUI) tools
19 document is currently focused on Clang and Clang Tool developers, not on
22 Clang Tools Organization
34 The underlying infrastructure for Clang Tools is the
40 A few Clang Tools are developed along side the core Clang libraries as
46 into the core Clang library set.
50 of Clang itself. They are entirely within the Clang *project*,
53 Core Clang Tools
58 *Clang* specific functionality.
64 Clang tool with the basic Clang diagnostics by syntax checking specific files
[all …]
H A DTooling.rst5 Clang provides infrastructure to write tools that need syntactic and semantic
20 * Clang Python Bindings
31 * want full control over the Clang AST
33 Clang Plugins
41 Canonical examples of when to use Clang Plugins:
46 Use Clang Plugins when you...:
50 * need full control over the Clang AST
52 Do not use Clang Plugins when you...:
55 * want full control on how Clang is set up, including mapping of in-memory
74 * want full control over the Clang AST
[all …]
H A DToolchain.rst12 Clang is only one component in a complete tool chain for C family
14 additional tools and runtime libraries are required. Clang is designed
25 This document currently describes Clang configurations on POSIX-like
41 The ``-E`` flag instructs Clang to stop after this step.
61 The ``-S`` flag instructs Clang to stop after this step.
65 The ``-c`` flag instructs Clang to stop after this step.
82 Clang frontend
116 Clang can be configured to use one of several different linkers:
146 Clang so they can be added to this list!
275 Clang supports a wide variety of
[all …]
H A DExternalClangExamples.rst2 External Clang Examples
9 done with Clang that might serve as useful guides (or starting points) from
11 banal (but necessary) as how to set up your build to integrate Clang.
13 Clang's library-based design is deliberately aimed at facilitating use by
14 external projects, and we are always interested in improving Clang to
16 where Clang is used are:
21 If you know of (or wrote!) a tool or project using Clang, please post on
22 `the Discourse forums (Clang Frontend category)
24 (or if you are already a Clang contributor, feel free to directly commit
70 "cmonster is a Python wrapper for the Clang C++ parser."
[all …]
H A DMSVCCompatibility.rst17 When Clang compiles C++ code for Windows, it attempts to be compatible with
20 First, Clang attempts to be ABI-compatible, meaning that Clang-compiled code
22 ABIs are particularly large and complicated, and Clang's support for MSVC's C++
27 Second, Clang implements many MSVC language extensions, such as
31 Third, MSVC accepts some C++ code that Clang will typically diagnose as
33 Clang attempts to recover and continue compiling the user's program. Most
68 base class`_. Clang does not yet support this.
107 * Lambdas: :good:`Mostly complete`. Clang is compatible with Microsoft's
115 MSVC allows many invalid constructs in class templates that Clang has
136 following program, Clang will recover as if the user had written the
[all …]
/llvm-project-15.0.7/clang/tools/scan-build/libexec/
H A Dccc-analyzer66 my $Clang;
95 $Clang = $ENV{'CLANG_CXX'};
96 if (!defined $Clang || ! -x $Clang) { $Clang = 'clang++'; }
104 $Clang = $ENV{'CLANG'};
105 if (!defined $Clang || ! -x $Clang) { $Clang = 'clang'; }
151 my ($Clang, $Lang, $file, $Args, $HtmlDir, $ErrorType, $ofile) = @_;
171 system $Clang, @$Args, "-E", "-o", $PPFile;
227 $Cmd = $Clang;
293 if ($Result & 127 and $Cmd eq $Clang and defined $HtmlDir) {
334 $ppfile = ProcessClangFailure($Clang, $Lang, $file,
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/
H A Dpp-trace.rst11 activity. It's also used as a test of Clang's PPCallbacks interface.
12 It runs a given source file through the Clang preprocessor, displaying
115 PrevFID: "D:/Clang/llvm/clang-tools-extra/test/pp-trace/Input/Level1B.h"
232 SearchPath: "D:/Clang/llvmnewmod/clang-tools-extra/test/pp-trace"
635 …Range: ["D:/Clang/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:5", "D:/Clang/llvm/cla…
653 …Range: [":/Clang/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:2", ":/Clang/llvm/clang…
674 …ConditionRange: ["D:/Clang/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:8:4", "D:/Clang…
697 …ConditionRange: ["D:/Clang/llvm/clang-tools-extra/test/pp-trace/pp-trace-macro.cpp:10:4", "D:/Clan…
790 1. Read `Getting Started with the LLVM System`_ and `Clang Tools
792 Clang Extra Tools.
[all …]
/llvm-project-15.0.7/llvm/docs/CommandGuide/
H A Dtblgen.rst112 Generate Clang attribute clases.
128 Generate a Clang attribute list.
188 Generate Clang diagnostic groups.
204 Generate Clang AST comment nodes.
216 Generate Clang AST type nodes.
261 Generate ``arm_neon.h`` for Clang.
265 Generate ``arm_fp16.h`` for Clang.
269 Generate ``arm_bf16.h`` for Clang.
281 Generate ``arm_sve.h`` for Clang.
301 Generate ``arm_mve.h`` for Clang.
[all …]
/llvm-project-15.0.7/clang-tools-extra/
H A DREADME.txt2 // Clang Tools repository
5 Welcome to the repository of extra Clang Tools. This repository holds tools
7 Clang frontend. These tools are kept in a separate "extra" repository to
8 allow lighter weight checkouts of the core Clang codebase.
10 All discussion regarding Clang, Clang-based tools, and code in this repository
11 should be held using the standard Clang forum:
14 Code review for this tree should take place on the standard Clang patch and
/llvm-project-15.0.7/clang/lib/FrontendTool/
H A DExecuteCompilerInvocation.cpp194 if (Clang->getFrontendOpts().ShowHelp) { in ExecuteCompilerInvocation()
206 if (Clang->getFrontendOpts().ShowVersion) { in ExecuteCompilerInvocation()
211 Clang->LoadRequestedPlugins(); in ExecuteCompilerInvocation()
217 if (!Clang->getFrontendOpts().LLVMArgs.empty()) { in ExecuteCompilerInvocation()
230 AnalyzerOptions &AnOpts = *Clang->getAnalyzerOpts(); in ExecuteCompilerInvocation()
235 ento::printCheckerHelp(llvm::outs(), *Clang); in ExecuteCompilerInvocation()
242 ento::printCheckerConfigList(llvm::outs(), *Clang); in ExecuteCompilerInvocation()
248 ento::printEnabledCheckerList(llvm::outs(), *Clang); in ExecuteCompilerInvocation()
260 if (Clang->getDiagnostics().hasErrorOccurred()) in ExecuteCompilerInvocation()
266 bool Success = Clang->ExecuteAction(*Act); in ExecuteCompilerInvocation()
[all …]
/llvm-project-15.0.7/bolt/docs/
H A DOptimizingClang.md1 # Optimizing Clang : A Practical Example of Applying BOLT
23 ## Building Clang
33 ## Optimizing Clang with BOLT
39 Clang/LLVM sources for that.
153 ## Using Clang for Other Applications
183 ## Bootstrapping Clang-7 with PGO and LTO
189 ### Getting Clang-7 Sources
224 Using the freshly-baked stage 1 Clang compiler, we are going to build Clang with
243 while building Clang itself:
257 passed back into Clang:
[all …]
/llvm-project-15.0.7/clang/include/clang/Testing/
H A DTestAST.h76 ASTContext &context() { return Clang->getASTContext(); } in context()
77 Sema &sema() { return Clang->getSema(); } in sema()
78 SourceManager &sourceManager() { return Clang->getSourceManager(); } in sourceManager()
79 FileManager &fileManager() { return Clang->getFileManager(); } in fileManager()
80 Preprocessor &preprocessor() { return Clang->getPreprocessor(); } in preprocessor()
89 std::unique_ptr<CompilerInstance> Clang; variable
/llvm-project-15.0.7/clang/www/
H A Dmenu.html.incl7 <label>Clang Info</label>
20 <label>Clang Development</label>
24 <a href="/docs/InternalsManual.html">Clang&nbsp;Internals</a>
25 <a href="/hacking.html">Hacking on Clang</a>
29 <label>Clang Tools</label>
31 <a href="/docs/Tooling.html">Writing Clang Tools</a>
36 <a href="https://discourse.llvm.org/c/clang">Clang Forum</a>
39 <a href="http://planet.clang.org/">Planet Clang</a>
56 <label>Clang Events</label>
/llvm-project-15.0.7/libcxx/docs/Status/
H A DFormatIssues.csv2 `P0645 <https://wg21.link/P0645>`_,"Text Formatting",Mark de Wever,,|Complete|,Clang 14
3 …//reviews.llvm.org/D103433>`__, `D114001 <https://reviews.llvm.org/D114001>`__",|Complete|,Clang 14
4 …s for std::format",Mark de Wever,`D103368 <https://reviews.llvm.org/D103368>`__,|Complete|,Clang 14
5 …://reviews.llvm.org/D103425>`__ `D103670 <https://reviews.llvm.org/D103670>`__",|Complete|,Clang 14
6 `P2216 <https://wg21.link/P2216>`_,"std::format improvements",Mark de Wever,,|Complete|,Clang 15
7 … ``std::format``",Mark de Wever,`D127570 <https://reviews.llvm.org/D127570>`__,|Complete|, Clang 15
8 …k/P2508R1>`__,"Exposing ``std::basic-format-string``","C++23","Mark de Wever","|Complete|",Clang 15

12345678910>>...23