search for: diagnosticids

Displaying 17 results from an estimated 17 matches for "diagnosticids".

2016 Oct 19
3
IntrusiveRefCntPtr vs std::shared_ptr
...ng source code. Due to better performance? for example in main func of 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 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...l1.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::LangOptions()' tutorial1.cpp:(.text+0x125): undefined reference to `clang::FileManager::FileManager(clang::FileSystemOptions const&)' tutorial1.cpp:(.text+0x148...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...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::LangOptions()' > tutorial1.cpp:(.text+0x125): undefined reference to > `clang::FileManager::FileManager(clang::FileSystemOptions const&)' &...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...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::LangOptions()' > tutorial1.cpp:(.text+0x125): undefined reference to > `clang::FileManager::FileManager(clang::FileSystemOptions const&)' &...
2011 Dec 16
0
[LLVMdev] LLVM+Clang as a shared library
...ng (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 works for me. Otherwise, yes, I have made...
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...l1.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::LangOptions()' tutorial1.cpp:(.text+0x125): undefined reference to `clang::FileManager::FileManager(clang::FileSystemOptions const&)' tutorial1.cpp:(.text+0x148...
2012 Sep 21
2
[LLVMdev] Clang API parsing of the destructor
...cOptions 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, pTextDiagnosticPrinter); clang::LangOptions languageOptions; languageOptions.GNUMode = 1; languageOptions.CXXExceptions = 1; languageOptions.RTTI = 1; languageOptions....
2014 Oct 08
2
[LLVMdev] lld coding style
...; next to the revision, which lets you jump to the file "past that revision". This lets one quickly browse to the right point for what one is looking for, making naming or formatting changes less burdensome. Example: http://reviews.llvm.org/diffusion/L/browse/cfe/trunk/include/clang/Basic/DiagnosticIDs.h;198376 Cheers, /Manuel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141008/fd68d692/attachment.html>
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 10
2
[LLVMdev] lld coding style
...o the file >> "past that revision". This lets one quickly browse to the right point for >> what one is looking for, making naming or formatting changes less >> burdensome. >> Example: >> http://reviews.llvm.org/diffusion/L/browse/cfe/trunk/include/clang/Basic/DiagnosticIDs.h;198376 >> > > > That is really great! I need this from time to time and though it's not > difficult to approximate on the command line, it is tedious. This saves a > lot of work! You can also do this easily without Phab just by using git (with "git gui blame <p...
2012 Sep 21
0
[LLVMdev] Clang API parsing of the destructor
...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, pTextDiagnosticPrinter); > > clang::LangOptions languageOptions; > languageOptions.GNUMode = 1; > languageOptions.CXXExceptions = 1; > languageOpti...
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
...des >>> > convenience >>> > +/// methods, which help with writing tests that change files. >>> > +class RewriterTestContext { >>> > + public: >>> > +  RewriterTestContext() >>> > +      : Diagnostics(llvm::IntrusiveRefCntPtr<DiagnosticIDs>()), >>> > +        DiagnosticPrinter(llvm::outs(), DiagnosticOptions()), >>> > +        Files((FileSystemOptions())), >>> > +        Sources(Diagnostics, Files), >>> > +        Rewrite(Sources, Options) { >>> > +    Diagnostics.setClie...
2013 Oct 03
0
[LLVMdev] libclang JIT frontend
...ys::Path Path = GetExecutablePath(argv[0]); llvm::sys::Path Path = GetExecutablePath(argv); IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); TextDiagnosticPrinter *DiagClient = new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts); IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient); Driver TheDriver(Path.str(), llvm::sys::getProcessTriple(), "a.out", Diags); TheDriver.setTitle("clang interpreter"); // FIXME: This is a hack to try to force the driver to do...
2012 Sep 09
2
[LLVMdev] : troubles during compiling
...dia/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp:224:23: note: 'llvm::FoldingSetNodeID' is not derived from 'const llvm::Optional<T>' In file included from /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/Basic/DiagnosticIDs.h:19:0, from /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/Basic/Diagnostic.h:18, from /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/AST/Type.h:17, from /media/data/dev/l...
2020 Sep 27
3
How to add a new clang-tidy module
...hedDecl->getIdentifier() || MatchedDecl->getName().startswith("awesome_")) + return; + diag(MatchedDecl->getLocation(), "function %0 is insufficiently awesome") + << MatchedDecl; + diag(MatchedDecl->getLocation(), "insert 'awesome'", DiagnosticIDs::Note) + << FixItHint::CreateInsertion(MatchedDecl->getLocation(), "awesome_"); +} + +} // namespace misra +} // namespace tidy +} // namespace clang diff --git a/clang-tools-extra/clang-tidy/misra/M011Check.h b/clang-tools-extra/clang-tidy/misra/M011Check.h new file mode 10...
2012 Sep 09
0
[LLVMdev] : troubles during compiling
...vm/llvm/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp:224:23: > note: 'llvm::FoldingSetNodeID' is not derived from 'const llvm::Optional<T>' > In file included from > /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/Basic/DiagnosticIDs.h:19:0, > from > /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/Basic/Diagnostic.h:18, > from > /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/AST/Type.h:17, >...
2014 Oct 08
2
[LLVMdev] lld coding style
On Wed, Oct 8, 2014 at 10:16 AM, Chandler Carruth <chandlerc at google.com> wrote: > > On Wed, Oct 8, 2014 at 9:34 AM, Chris Lattner <clattner at apple.com> wrote: > >> > On Oct 8, 2014, at 1:55 AM, Renato Golin <renato.golin at linaro.org> >> wrote: >> > >> > On 8 October 2014 05:25, Chris Lattner <clattner at apple.com> wrote: