search for: textdiagnosticprint

Displaying 20 results from an estimated 20 matches for "textdiagnosticprint".

Did you mean: textdiagnosticprinter
2012 Sep 21
2
[LLVMdev] Clang API parsing of the destructor
...e what that might be. I've been searching all over for a missing option/configuration. Here is my clang API usage: // Include appropriate headers. int main() { clang::DiagnosticOptions diagnosticOptions; diagnosticOptions.ShowColors=1; diagnosticOptions.ShowOptionNames=1; clang::TextDiagnosticPrinter *pTextDiagnosticPrinter = new clang::TextDiagnosticPrinter( llvm::outs(), diagnosticOptions); llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> pDiagIDs; clang::DiagnosticsEngine *pDiagnosticsEngine = new clang::DiagnosticsEngine(pDiagIDs, pTextDiagn...
2012 Sep 21
0
[LLVMdev] Clang API parsing of the destructor
...ssing > option/configuration.**** > > Here is my clang API usage:**** > > // Include appropriate headers. > int main() > { > clang::DiagnosticOptions diagnosticOptions; > diagnosticOptions.ShowColors=1; > diagnosticOptions.ShowOptionNames=1; > clang::TextDiagnosticPrinter *pTextDiagnosticPrinter = > new clang::TextDiagnosticPrinter( > llvm::outs(), > diagnosticOptions); > llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> pDiagIDs; > clang::DiagnosticsEngine *pDiagnosticsEngine = > new clang::Diagnost...
2011 Dec 16
0
[LLVMdev] LLVM+Clang as a shared library
...ke Everything is fine when I test LLVM on its own within my Qt-based application. However, as soon as I try to test Clang (using the Clang interpreter example; http://llvm.org/svn/llvm-project/cfe/trunk/examples/clang-interpreter/), I get linking errors. For example, undefined references to clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&, clang::DiagnosticOptions const&, bool), clang::DiagnosticIDs::DiagnosticIDs(),clang::DiagnosticsEngine::DiagnosticsE ngine(llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> const&, clang::DiagnosticConsumer*, bool), etc. What I don't...
2013 Oct 03
0
[LLVMdev] libclang JIT frontend
...pilation.h" #include "clang/Driver/Driver.h" #include "clang/Driver/Tool.h" #include "clang/Frontend/CompilerInstance.h" #include "clang/Frontend/CompilerInvocation.h" #include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Frontend/TextDiagnosticPrinter.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SmallString.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/JIT.h" #include "llvm/IR/Module.h" #include "llvm/Support/Host.h" #include "l...
2010 Aug 18
1
[LLVMdev] clang: call extern function using JIT
...ot; #include "clang/Driver/Tool.h" #include "clang/Frontend/CompilerInvocation.h" #include "clang/Frontend/CompilerInstance.h" #include "clang/Frontend/DiagnosticOptions.h" #include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Frontend/TextDiagnosticPrinter.h" #include "llvm/DerivedTypes.h" #include "llvm/Support/TypeBuilder.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/Config/config.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SmallString.h&quo...
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...MMCJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport tutorial1.cpp  /tmp/tutorial1-oP8CUT.o: In function `main': tutorial1.cpp:(.text+0x42): undefined reference to `llvm::outs()' tutorial1.cpp:(.text+0x72): undefined reference to `clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&, clang::DiagnosticOptions const&, bool)' tutorial1.cpp:(.text+0xd7): undefined reference to `clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> const&, clang::DiagnosticConsumer*, bool)' tu...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...ang++ -I /home/ubuntu/bin/include/ > -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS > tutorial1.cpp/tmp/tutorial1-LQ71fW.o: In function `main': > tutorial1.cpp:(.text+0x42): undefined reference to `llvm::outs()' > tutorial1.cpp:(.text+0x72): undefined reference to > `clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&, > clang::DiagnosticOptions const&, bool)' > tutorial1.cpp:(.text+0xd7): undefined reference to > `clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> > const&, clang::DiagnosticCons...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...-lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore > -lLLVMSupport tutorial1.cpp > /tmp/tutorial1-oP8CUT.o: In function `main': > tutorial1.cpp:(.text+0x42): undefined reference to `llvm::outs()' > tutorial1.cpp:(.text+0x72): undefined reference to > `clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&, > clang::DiagnosticOptions const&, bool)' > tutorial1.cpp:(.text+0xd7): undefined reference to > `clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> > const&, clang::DiagnosticCons...
2014 Nov 13
2
[LLVMdev] New type of smart pointer for LLVM
...ocessor::OwnsHeaderSearch > TokenLexer::OwnsTokens > Action::OwnsInputs (this ones trickier - it's a boolean that indicates > whether all the elements of a vector<T*> are owned or unowned) > ASTUnit::OwnsRemappedFileBuffers > VerifyDiagnosticConsumer::OwnsPrimaryClient > TextDiagnosticPrinter::OwnsOutputStream > FixItRewriter::OwnsClient > Tooling::OwnsAction > > Some in LLVM: > > circular_raw_ostream::OwnsStream > Arg::OwnsValues (another tricky one with a bool flag and a vector of raw > pointers, if I recall correctly) > > > And a couple that I chang...
2010 Aug 18
0
[LLVMdev] clang: call extern function using JIT
I tried what you said, now I get: LLVM ERROR: Program used external function 'yipee' which could not be resolved! Stack dump: 0. Running pass 'X86 Machine Code Emitter' on function '@main' did not even get as far as a breakpoint. Óscar Fuentes wrote: > > gafferuk <gafferuk at gmail.com> writes: > >> Im confused. The function i wish to call is
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...$ /home/ubuntu/bin/bin/clang++ -I /home/ubuntu/bin/include/  -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS tutorial1.cpp/tmp/tutorial1-LQ71fW.o: In function `main': tutorial1.cpp:(.text+0x42): undefined reference to `llvm::outs()' tutorial1.cpp:(.text+0x72): undefined reference to `clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&, clang::DiagnosticOptions const&, bool)' tutorial1.cpp:(.text+0xd7): undefined reference to `clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> const&, clang::DiagnosticConsumer*, bool)' tu...
2010 Aug 18
2
[LLVMdev] clang: call extern function using JIT
gafferuk <gafferuk at gmail.com> writes: > Im confused. The function i wish to call is a return type of int. > Im calling it with int dd = yipee(1); > > What's wrong? Declare the function: int yipee(int); int main() { int dd = yipee(1); return 0; } If that still crashes, put a breakpoint on `yipee' and see if the execution gets there, if the argument is
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
...ude "clang/Basic/FileManager.h" >>> > +#include "clang/Basic/LangOptions.h" >>> > +#include "clang/Basic/SourceManager.h" >>> > +#include "clang/Frontend/DiagnosticOptions.h" >>> > +#include "clang/Frontend/TextDiagnosticPrinter.h" >>> > +#include "clang/Rewrite/Rewriter.h" >>> > +#include "llvm/Support/Path.h" >>> > +#include "llvm/Support/raw_ostream.h" >>> > + >>> > +namespace clang { >>> > + >>> > +/...
2014 Nov 13
2
[LLVMdev] [cfe-dev] New type of smart pointer for LLVM
...ex to reason about smart pointer. > I'd generally prefer conditional ownership over shared ownership if possible - it's a narrower contract & I can still think about where the single owner is. I know in at least some of these uses, shared pointer semantics would not be applicable - TextDiagnosticPrinter::OwnsOutputStream, for example either owns its own newly allocated stream or uses std::cout (or cerr, or something) - it can never share the ownership of that stream, so it really must be "own something or own nothing". (I suppose we could use a custom no-op deleter on a shared_ptr in t...
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. > > > $
2014 Oct 08
2
[LLVMdev] New type of smart pointer for LLVM
[+cfe-dev] This conversation has already been happening on llvm-dev so there's no good way for me to capture the entire existing discussion (so I'm jumping you in part-way) & the subject line could be more descriptive, but I wanted to add Clang developers since many of the interesting cases of conditional ownership I've seen were in Clang. I know some of you are also on llvm-dev
2020 Jun 02
12
[RFC] Refactor Clang: move frontend/driver/diagnostics code to LLVM
...ere we discuss the impact). 2. libclangFrontend & libclangDriver The Flang driver will use many methods from libClangDriver, libClangFrontend and libClangFrontendTool. Driver.h and Compilation.h from libClangDriver are responsible to call, pass the correct arguments and execute the driver. TextDiagnosticPrinter.h takes care of printing the driver diagnostics in case of errors. The Flang frontend will use CompilerInstance, CompilerInvocation, FrontendOptions, FrontendActions and Utils from libClangFrontend and libClangFrontendTool. These methods are responsible for translating the command line argum...
2020 Jun 03
2
[cfe-dev] [RFC] Refactor Clang: move frontend/driver/diagnostics code to LLVM
...agnostic table generation, most of the diagnostics > engine (including support for diagnostics pragmas that change the set of > warnings enabled at different source locations), and the formatting code > for non-clang-specific types are all relatively reusable. If you want to > reuse the TextDiagnosticPrinter, I think that will need some refactoring; > it's currently tied into the specific needs of Clang's SourceManager (for > handling textual inclusion and macro expansion in the way that C-family > languages deal with those things). I expect it would be possible to factor > out an...
2014 Oct 01
4
[LLVMdev] New type of smart pointer for LLVM
On Wed, Oct 1, 2014 at 3:14 PM, Anton Yartsev <anton.yartsev at gmail.com> wrote: > Ping! > > Suggested is a wrapper over a raw pointer that is intended for freeing > wrapped memory at the end of wrappers lifetime if ownership of a raw > pointer was not taken away during the lifetime of the wrapper. > The main difference from unique_ptr is an ability to access the wrapped
2020 Jun 09
4
[RFC] Refactor Clang: move frontend/driver/diagnostics code to LLVM
...of the diagnostics engine (including support for > diagnostics pragmas that change the set of warnings enabled at > different source locations), and the formatting code for > non-clang-specific types are all relatively reusable. If you > want to reuse the TextDiagnosticPrinter, I think that will need > some refactoring; it's currently tied into the specific needs of > Clang's SourceManager (for handling textual inclusion and macro > expansion in the way that C-family languages deal with those > things). I expect it wo...