Home
last modified time | relevance | path

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

12345678910>>...12

/openbsd/src/gnu/llvm/clang/lib/Testing/
DTestAST.cpp54 void createMissingComponents(CompilerInstance &Clang) { in createMissingComponents() argument
55 if (!Clang.hasDiagnostics()) in createMissingComponents()
56 Clang.createDiagnostics(); in createMissingComponents()
57 if (!Clang.hasFileManager()) in createMissingComponents()
58 Clang.createFileManager(); in createMissingComponents()
59 if (!Clang.hasSourceManager()) in createMissingComponents()
60 Clang.createSourceManager(Clang.getFileManager()); in createMissingComponents()
61 if (!Clang.hasTarget()) in createMissingComponents()
62 Clang.createTarget(); in createMissingComponents()
63 if (!Clang.hasPreprocessor()) in createMissingComponents()
[all …]
/openbsd/src/gnu/llvm/clang/tools/driver/
Dcc1_main.cpp188 std::unique_ptr<CompilerInstance> Clang(new CompilerInstance()); in cc1_main() local
192 auto PCHOps = Clang->getPCHContainerOperations(); in cc1_main()
213 bool Success = CompilerInvocation::CreateFromArgs(Clang->getInvocation(), in cc1_main()
216 if (Clang->getFrontendOpts().TimeTrace || in cc1_main()
217 !Clang->getFrontendOpts().TimeTracePath.empty()) { in cc1_main()
218 Clang->getFrontendOpts().TimeTrace = 1; in cc1_main()
220 Clang->getFrontendOpts().TimeTraceGranularity, Argv0); in cc1_main()
223 if (Clang->getFrontendOpts().PrintSupportedCPUs) in cc1_main()
224 return PrintSupportedCPUs(Clang->getTargetOpts().Triple); in cc1_main()
227 if (Clang->getHeaderSearchOpts().UseBuiltinIncludes && in cc1_main()
[all …]
/openbsd/src/gnu/llvm/clang/lib/Frontend/
DChainedIncludesSource.cpp125 std::unique_ptr<CompilerInstance> Clang( in createChainedIncludesSource() local
127 Clang->setInvocation(std::move(CInvok)); in createChainedIncludesSource()
128 Clang->setDiagnostics(Diags.get()); in createChainedIncludesSource()
129 Clang->setTarget(TargetInfo::CreateTargetInfo( in createChainedIncludesSource()
130 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in createChainedIncludesSource()
131 Clang->createFileManager(); in createChainedIncludesSource()
132 Clang->createSourceManager(Clang->getFileManager()); in createChainedIncludesSource()
133 Clang->createPreprocessor(TU_Prefix); in createChainedIncludesSource()
134 Clang->getDiagnosticClient().BeginSourceFile(Clang->getLangOpts(), in createChainedIncludesSource()
135 &Clang->getPreprocessor()); in createChainedIncludesSource()
[all …]
DPrecompiledPreamble.cpp444 std::unique_ptr<CompilerInstance> Clang( in Build() local
449 Clang.get()); in Build()
451 Clang->setInvocation(std::move(PreambleInvocation)); in Build()
452 Clang->setDiagnostics(&Diagnostics); in Build()
455 if (!Clang->createTarget()) in Build()
458 if (Clang->getFrontendOpts().Inputs.size() != 1 || in Build()
459 Clang->getFrontendOpts().Inputs[0].getKind().getFormat() != in Build()
461 Clang->getFrontendOpts().Inputs[0].getKind().getLanguage() == in Build()
468 ProcessWarningOptions(Diagnostics, Clang->getDiagnosticOpts()); in Build()
471 createVFSFromCompilerInvocation(Clang->getInvocation(), Diagnostics, VFS); in Build()
[all …]
DASTUnit.cpp1142 std::unique_ptr<CompilerInstance> Clang( in Parse() local
1152 transferASTDataFromCompilerInstance(*Clang); in Parse()
1162 Clang->setFileManager(&*FileMgr); in Parse()
1164 FileMgr = Clang->createFileManager(std::move(VFS)); in Parse()
1168 CICleanup(Clang.get()); in Parse()
1170 Clang->setInvocation(CCInvocation); in Parse()
1172 std::string(Clang->getFrontendOpts().Inputs[0].getFile()); in Parse()
1176 Clang->setDiagnostics(&getDiagnostics()); in Parse()
1179 if (!Clang->createTarget()) in Parse()
1182 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in Parse()
[all …]
/openbsd/src/gnu/llvm/clang/
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 …]
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 …]
/openbsd/src/gnu/llvm/llvm/docs/
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
12 This guide walks you through how to build Clang with PGO, though it also applies
28 tested on a few Linux flavors, and requires a checkout of LLVM, Clang, and
29 compiler-rt. Despite the name, it performs four clean builds of Clang, so it
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
64 Altogether, this should cover a diverse set of uses for Clang and LLVM. If you
70 Building Clang with PGO
74 how to build Clang/LLVM with PGO.
[all …]
/openbsd/src/gnu/llvm/clang/docs/
DClangTools.rst5 Clang Tools are standalone command line (and potentially GUI) tools
7 Clang as their compiler. These tools provide developer-oriented
12 primary Clang tree. The rest of the tools are kept in a separate
17 Clang Tools within the project as well as giving an introduction to some
19 document is currently focused on Clang and Clang Tool developers, not on
22 Clang Tools Organization
25 Clang Tools are CLI or GUI programs that are intended to be directly
27 Clang developers, although they are hopefully useful to C++ developers
28 who happen to work on Clang, and we try to actively dogfood their
30 infrastructure for building a standalone tool based on Clang, core
[all …]
DClangRepl.rst2 Clang-Repl
5 **Clang-Repl** is an interactive C++ interpreter that allows for incremental
7 read-evaluate-print-loop (REPL) style. It uses Clang as a library to compile the
11 Clang-Repl is suitable for exploratory programming and in places where time
12 to insight is important. Clang-Repl is a project inspired by the work in
15 analysis framework `ROOT <https://root.cern/>`_. Clang-Repl allows to move parts
20 Clang-Repl Usage
35 Clang-Repl Basic Data Flow
42 Clang-Repl data flow can be divided into roughly 8 phases:
44 1. Clang-Repl controls the input infrastructure by an interactive prompt or by
[all …]
DTooling.rst5 Clang provides infrastructure to write tools that need syntactic and semantic
20 * Clang Python Bindings
27 cursor, and don't want to learn all the nitty gritty details of Clang's AST.
31 * want full control over the Clang AST
33 Clang Plugins
36 :doc:`Clang Plugins <ClangPlugins>` allow you to run additional actions on the
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...:
[all …]
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.
49 The ``-precompile`` flag instructs Clang to stop after this step. This is
53 into an optimizer-specific intermediate representation (IR); for Clang, this
55 The ``-emit-llvm`` flag instructs Clang to stop after this step. If combined
56 with ``-S``, Clang will produce textual LLVM IR; otherwise, it will produce
61 The ``-S`` flag instructs Clang to stop after this step.
65 The ``-c`` flag instructs Clang to stop after this step.
[all …]
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
40 "qconnectlint is a Clang tool for statically verifying the consistency
[all …]
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.
75 * Debug info: :good:`Mostly complete`. Clang emits relatively complete CodeView
107 * Lambdas: :good:`Mostly complete`. Clang is compatible with Microsoft's
115 MSVC allows many invalid constructs in class templates that Clang has
[all …]
DIntroductionToTheClangAST.rst2 Introduction to the Clang AST
5 This document gives a gentle introduction to the mysteries of the Clang
7 Clang, or use tools that work based on Clang's AST, like the AST
19 Clang's AST is different from ASTs produced by some other compilers in
23 Clang's AST a good fit for refactoring tools.
25 Documentation for all Clang AST nodes is available via the generated
35 A good way to familiarize yourself with the Clang AST is to actually look
36 at it on some simple example code. Clang has a builtin AST-dump mode,
49 # Clang by default is a frontend for many tools; -Xclang is used to pass
88 or to access Clang's `table of
[all …]
Dindex.rst1 .. Clang documentation master file, created by
6 .. title:: Welcome to Clang's documentation!
13 Using Clang as a Compiler
57 Using Clang as a Library
78 Using Clang Tools
DReleaseNotes.rst2 Clang |release| |ReleaseNotesTitle|
14 These are in-progress notes for the upcoming Clang |version| release.
21 This document contains the release notes for the Clang C/C++/Objective-C
23 describe the status of Clang in some detail, including major
30 For more information about Clang or LLVM, including information about the
31 latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or the
37 Clang |release| because of the opportunity they pose for disruption to existing
40 - Clang's default C++/ObjC++ standard is now ``gnu++17`` instead of ``gnu++14``.
41 This means Clang will by default accept code using features from C++17 and
46 flags have been removed. These flags have been silently ignored since Clang 15.
[all …]
/openbsd/src/gnu/llvm/clang/tools/scan-build/libexec/
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;
194 my $OutputStream = silent_system($HtmlDir, $Clang, "-###", $mode, @$Args);
209 my ($Clang, $OriginalArgs, $AnalyzeArgs, $Lang, $Output, $Verbose, $HtmlDir,
227 $Cmd = $Clang;
[all …]
/openbsd/src/gnu/llvm/lldb/docs/use/
Dextensions.rst4 LLDB supports some DWARF extensions produced by Clang.
6 Clang ``-gmodules`` debug info
9 On Darwin platforms, including Apple macOS and iOS, Clang can emit
10 DWARF debug info for types found in `Clang
13 From an on-disk storage perspective, Clang modules are precompiled
14 header files that contain serialized Clang ASTs of all the
15 declarations found in a Clang module. In traditional DWARF debug info,
21 When Clang compiles a Clang module or precompiled header with the
24 that hold a ``__clang_ast`` section with the serialized Clang AST and
28 This allows Clang to omit these type definitions from the object
[all …]
/openbsd/src/gnu/llvm/llvm/docs/CommandGuide/
Dtblgen.rst112 Generate Clang attribute clases.
124 Generate Clang attribute implementations.
128 Generate a Clang attribute list.
132 Generate a Clang attribute subject match rule list.
136 Generate Clang PCH attribute reader.
140 Generate Clang PCH attribute writer.
144 Generate a Clang attribute spelling list.
148 Generate a Clang attribute spelling index.
152 Generate a recursive AST visitor for Clang attributes.
156 Generate a Clang template instantiate code.
[all …]
/openbsd/src/gnu/llvm/clang/lib/FrontendTool/
DExecuteCompilerInvocation.cpp190 bool ExecuteCompilerInvocation(CompilerInstance *Clang) { in ExecuteCompilerInvocation() argument
192 if (Clang->getFrontendOpts().ShowHelp) { in ExecuteCompilerInvocation()
204 if (Clang->getFrontendOpts().ShowVersion) { in ExecuteCompilerInvocation()
209 Clang->LoadRequestedPlugins(); in ExecuteCompilerInvocation()
215 if (!Clang->getFrontendOpts().LLVMArgs.empty()) { in ExecuteCompilerInvocation()
216 unsigned NumArgs = Clang->getFrontendOpts().LLVMArgs.size(); in ExecuteCompilerInvocation()
220 Args[i + 1] = Clang->getFrontendOpts().LLVMArgs[i].c_str(); in ExecuteCompilerInvocation()
228 AnalyzerOptions &AnOpts = *Clang->getAnalyzerOpts(); in ExecuteCompilerInvocation()
233 ento::printCheckerHelp(llvm::outs(), *Clang); in ExecuteCompilerInvocation()
240 ento::printCheckerConfigList(llvm::outs(), *Clang); in ExecuteCompilerInvocation()
[all …]
/openbsd/src/gnu/llvm/clang/include/clang/Testing/
DTestAST.h80 ASTContext &context() { return Clang->getASTContext(); } in context()
81 Sema &sema() { return Clang->getSema(); } in sema()
82 SourceManager &sourceManager() { return Clang->getSourceManager(); } in sourceManager()
83 FileManager &fileManager() { return Clang->getFileManager(); } in fileManager()
84 Preprocessor &preprocessor() { return Clang->getPreprocessor(); } in preprocessor()
94 std::unique_ptr<CompilerInstance> Clang; variable
/openbsd/src/gnu/llvm/clang/www/
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>
/openbsd/src/gnu/llvm/clang/include/clang/Basic/
DAttr.td26 This section lists attributes which are recognized by Clang, but which are
321 // The Clang spelling implies GNU<name>, CXX11<"clang", name>, and optionally,
322 // C2x<"clang", name>. This spelling should be used for any Clang-specific
324 class Clang<string name, bit allowInC = 1> : Spelling<name, "Clang"> {
676 let Spellings = [Clang<"address_space">];
698 let Spellings = [Clang<"__clang_arm_builtin_alias">];
768 let Spellings = [Clang<"xray_always_instrument">,
769 Clang<"xray_never_instrument">];
772 [Clang<"xray_always_instrument">]>,
774 [Clang<"xray_never_instrument">]>];
[all …]
/openbsd/src/gnu/llvm/clang/tools/scan-build/bin/
Dscan-build142 my $Clang;
1329 if (defined $Clang && -x $Clang) {
1344 …my $ExecLine = join(' ', qq/"$Clang"/, @PluginLoadCommandline_xclang, "--analyze", "-x", $lang, "-…
1363 …my $ExecLine = join(' ', qq/"$Clang"/, "-cc1", @PluginLoadCommandline, "-analyzer-checker-help", "…
1485 $Clang = Cwd::realpath("$RealBin/bin/clang") if (-f "$RealBin/bin/clang");
1486 if (!defined $Clang || ! -x $Clang) {
1487 $Clang = Cwd::realpath("$RealBin/clang") if (-f "$RealBin/clang");
1488 if (!defined $Clang || ! -x $Clang) {
1495 $Clang = Cwd::realpath("$RealBin/../../bin/clang");
1499 if (!defined $Clang || ! -x $Clang) {
[all …]

12345678910>>...12