Displaying 14 results from an estimated 14 matches for "diagnosticoptions".
2012 Sep 21
2
[LLVMdev] Clang API parsing of the destructor
...lang++ fine: -bash-4.1$ clang++ test.cpp
So there must be a setting I'm missing in my clang API usage. Can anyone indicate 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::Diagnost...
2012 Sep 21
0
[LLVMdev] Clang API parsing of the destructor
...t be a setting I'm missing in my clang API usage. Can anyone
> indicate 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::In...
2016 Oct 19
3
IntrusiveRefCntPtr vs std::shared_ptr
...clang frontend:
int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
ensureSufficientStack();
std::unique_ptr<CompilerInstance> Clang(new CompilerInstance());
IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions();
--
Best wishes,
Ivan Kush
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
...gt; +#include "clang/Basic/Diagnostic.h"
>>> > +#include "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"
>>> > +...
2013 Oct 03
0
[LLVMdev] libclang JIT frontend
...iler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "clang/CodeGen/CodeGenAction.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Driver/Compilation.h"
#include "clang/Driver/Driver.h"
#include "clang/Driver/Tool.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Frontend/FrontendDiagnosti...
2010 Aug 18
1
[LLVMdev] clang: call extern function using JIT
...Gen/CodeGenAction.h"
#include "clang/Driver/Compilation.h"
#include "clang/Driver/Driver.h"
#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 &...
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
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
2011 Dec 16
0
[LLVMdev] LLVM+Clang as a shared library
...ation. 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 understand is that both LLVM and Clang are built together, yet
only LLVM w...
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...bject -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)'
tutorial1.cpp:(.text+0xf4): undefined reference to `clang::LangOptions::Lang...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
..._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)'
> tutorial1.cpp:(.text+0xf4): undefined reference to
>...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...upport 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)'
> tutorial1.cpp:(.text+0xf4): undefined reference to
>...
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
..._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)'
tutorial1.cpp:(.text+0xf4): undefined reference to `clang::LangOptions::Lang...
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.
>
>
> $