Displaying 9 results from an estimated 9 matches for "filesystemopt".
2012 Sep 21
2
[LLVMdev] Clang API parsing of the destructor
...sEngine =
new clang::DiagnosticsEngine(pDiagIDs, pTextDiagnosticPrinter);
clang::LangOptions languageOptions;
languageOptions.GNUMode = 1;
languageOptions.CXXExceptions = 1;
languageOptions.RTTI = 1;
languageOptions.Bool = 1;
languageOptions.CPlusPlus = 1;
clang::FileSystemOptions fileSystemOptions;
clang::FileManager fileManager(fileSystemOptions);
clang::SourceManager sourceManager(
*pDiagnosticsEngine,
fileManager);
clang::TargetOptions targetOptions;
targetOptions.Triple = "x86_64-unknown-linux-gnu";
targetOptions.CPU = &...
2012 Sep 21
0
[LLVMdev] Clang API parsing of the destructor
...tions.Bool = 1;
> languageOptions.CPlusPlus = 1;
>
Don't do this, use CompilerInvocation::setLangDefaults. Your problem is
probably that ImplicitInt is enabled (but you're likely to have other
LangOptions wrong too, and this code may break next time we add one).
> clang::FileSystemOptions fileSystemOptions;
> clang::FileManager fileManager(fileSystemOptions);
>
> clang::SourceManager sourceManager(
> *pDiagnosticsEngine,
> fileManager);
>
>
> clang::TargetOptions targetOptions;
> targetOptions.Triple = "x86_64-unknown-...
2014 Feb 27
2
[LLVMdev] multithreaded use of llvm::sys::RemoveFileOnSignal
Hi,
I am using clang::ToolInvocation class to compile some code in-memory:
clang::tooling::ToolInvocation ti
(
compilerArgs,
new clang::EmitBCAction(),
new clang::FileManager(clang::FileSystemOptions())
);
//filename is the name of the source file, e.g. "Somefile.cpp"
//sourcecode contains the source of the file
ti.mapVirtualFile( filename, sourcecode );
bool ret = ti.run();
In order to speed up compilation of several sources, I call the above code
concurrently...
2012 May 29
1
[LLVMdev] [cfe-commits] r157260 - in /cfe/trunk: include/clang/Rewrite/Rewriter.h lib/Rewrite/Rewriter.cpp unittests/CMakeLists.txt unittests/Tooling/RewriterTest.cpp unittests/Tooling/RewriterTestContext.h
...ss RewriterTestContext {
>>> > + public:
>>> > + RewriterTestContext()
>>> > + : Diagnostics(llvm::IntrusiveRefCntPtr<DiagnosticIDs>()),
>>> > + DiagnosticPrinter(llvm::outs(), DiagnosticOptions()),
>>> > + Files((FileSystemOptions())),
>>> > + Sources(Diagnostics, Files),
>>> > + Rewrite(Sources, Options) {
>>> > + Diagnostics.setClient(&DiagnosticPrinter, false);
>>> > + }
>>> > +
>>> > + ~RewriterTestContext() {
>>>...
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...osticsEngine(llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> const&, clang::DiagnosticConsumer*, bool)'
tutorial1.cpp:(.text+0xf4): undefined reference to `clang::LangOptions::LangOptions()'
tutorial1.cpp:(.text+0x125): undefined reference to `clang::FileManager::FileManager(clang::FileSystemOptions const&)'
tutorial1.cpp:(.text+0x148): undefined reference to `clang::SourceManager::SourceManager(clang::DiagnosticsEngine&, clang::FileManager&)'
tutorial1.cpp:(.text+0x17c): undefined reference to `llvm::sys::getDefaultTargetTriple()'
tutorial1.cpp:(.text+0x1d0): undef...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...iveRefCntPtr<clang::DiagnosticIDs>
> const&, clang::DiagnosticConsumer*, bool)'
> tutorial1.cpp:(.text+0xf4): undefined reference to
> `clang::LangOptions::LangOptions()'
> tutorial1.cpp:(.text+0x125): undefined reference to
> `clang::FileManager::FileManager(clang::FileSystemOptions const&)'
> tutorial1.cpp:(.text+0x148): undefined reference to
> `clang::SourceManager::SourceManager(clang::DiagnosticsEngine&,
> clang::FileManager&)'
> tutorial1.cpp:(.text+0x17c): undefined reference to
> `llvm::sys::getDefaultTargetTriple()'
> tuto...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...iveRefCntPtr<clang::DiagnosticIDs>
> const&, clang::DiagnosticConsumer*, bool)'
> tutorial1.cpp:(.text+0xf4): undefined reference to
> `clang::LangOptions::LangOptions()'
> tutorial1.cpp:(.text+0x125): undefined reference to
> `clang::FileManager::FileManager(clang::FileSystemOptions const&)'
> tutorial1.cpp:(.text+0x148): undefined reference to
> `clang::SourceManager::SourceManager(clang::DiagnosticsEngine&,
> clang::FileManager&)'
> tutorial1.cpp:(.text+0x17c): undefined reference to
> `llvm::sys::getDefaultTargetTriple()'
> tuto...
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...osticsEngine(llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> const&, clang::DiagnosticConsumer*, bool)'
tutorial1.cpp:(.text+0xf4): undefined reference to `clang::LangOptions::LangOptions()'
tutorial1.cpp:(.text+0x125): undefined reference to `clang::FileManager::FileManager(clang::FileSystemOptions const&)'
tutorial1.cpp:(.text+0x148): undefined reference to `clang::SourceManager::SourceManager(clang::DiagnosticsEngine&, clang::FileManager&)'
tutorial1.cpp:(.text+0x17c): undefined reference to `llvm::sys::getDefaultTargetTriple()'
tutorial1.cpp:(.text+0x1d0): undef...
2012 Jul 10
3
[LLVMdev] Unable to do even basic Clang tutorial
Add -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS to your compilation flag.
On 7/10/2012 11:23 AM, NY Knicks Fan wrote:
> Hi Ashok,
>
> I created a new Ubuntu 12.04 virtual machine and followed directions
> except that I know use your cmake command instead of configure, and I
> got the error below.
>
> Any help is very much appreciated.
>
>
> $