summaryrefslogtreecommitdiffstats
path: root/clang/examples
Commit message (Collapse)AuthorAgeFilesLines
* Use getProcessTriple in clang-interpreter.Peter Collingbourne2013-01-161-2/+1
| | | | llvm-svn: 172664
* Remove useless 'llvm::' qualifier from names like StringRef and others that areDmitri Gribenko2013-01-121-1/+1
| | | | | | brought into 'clang' namespace by clang/Basic/LLVM.h llvm-svn: 172323
* Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate toChandler Carruth2013-01-021-1/+1
| | | | | | | | reflect the migration in r171366. Re-sort the #include lines to reflect the new paths. llvm-svn: 171369
* Revert r170801, which breaks the mingw build.Douglas Gregor2012-12-201-0/+1
| | | | llvm-svn: 170804
* Eliminate errors when running the 'PrintFunctionNames' plugin, from Li Qun!Douglas Gregor2012-12-201-1/+0
| | | | llvm-svn: 170801
* Sort the #include lines for examples/...Chandler Carruth2012-12-043-10/+9
| | | | llvm-svn: 169241
* Fix examples.Rafael Espindola2012-11-271-1/+1
| | | | llvm-svn: 168705
* analyzer-plugin/MainCallChecker.cpp: Fixup corresponding to r167275.NAKAMURA Takumi2012-11-021-1/+1
| | | | llvm-svn: 167278
* Update clang-interpreter exampleDouglas Gregor2012-10-231-3/+4
| | | | llvm-svn: 166510
* Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.Ted Kremenek2012-09-012-2/+3
| | | | | | | This is similar to how we divide up the StaticAnalyzer libraries to separate core functionality to what is clearly associated with Frontend actions. llvm-svn: 163050
* libclang, examples: [CMake] Add dependencies to tblgen'd headers.NAKAMURA Takumi2012-07-272-0/+18
| | | | llvm-svn: 160849
* Remove a goofy CMake hack and use the standard CMake facilities toChandler Carruth2012-06-213-37/+40
| | | | | | | | | express library-level dependencies within Clang. This is no more verbose really, and plays nicer with the rest of the CMake facilities. It should also have no change in functionality. llvm-svn: 158888
* Honour CLANG_BUILD_EXAMPLES correctly, by setting the directory'sPeter Collingbourne2012-05-031-1/+1
| | | | | | EXCLUDE_FROM_ALL property. llvm-svn: 156090
* Reverted unintentional commit.Manuel Klimek2012-04-261-2/+1
| | | | llvm-svn: 155629
* Adds a small tutorial on how to write RAV based ASTFrontendActions.Manuel Klimek2012-04-261-1/+2
| | | | llvm-svn: 155627
* Remove clangIndex reference from clang-interpreter CMake buildDouglas Gregor2012-04-131-1/+0
| | | | llvm-svn: 154674
* clang-interpreter/Makefile: [PR12313] Update USEDLIBS to add clangEdit.NAKAMURA Takumi2012-03-211-1/+2
| | | | llvm-svn: 153167
* Remove clang-wpa example, which has been unmaintained for quite a while.Douglas Gregor2012-03-143-233/+0
| | | | llvm-svn: 152729
* Unify naming of LangOptions variable/get function across the Clang stack ↵David Blaikie2012-03-111-4/+4
| | | | | | | | | | (Lex to AST). The member variable is always "LangOpts" and the member function is always "getLangOpts". Reviewed by Chris Lattner llvm-svn: 152536
* [analyzer] Rename clang::CallGraph into clang::idx::CallGraph + renameAnna Zaks2012-03-021-3/+3
| | | | | | | | | | | | | the corresponding files to avoid confusion. This is a preparation to adding an AST-based call graph to Analysis. The existing call graph works with indexer entries. We might be able to refactor it to use the AST based graph in the future. (Minimal testing here as the only example that uses the API has been completely broken, does not compile.) llvm-svn: 151950
* Basic: import IntrusiveRefCntPtr<> into clang namespaceDylan Noblesmith2012-02-202-2/+2
| | | | | | | The class name is long enough without the llvm:: added. Also bring in RefCountedBase and RefCountedBaseVPTR. llvm-svn: 150958
* drop more llvm:: prefixes on SmallString<>Dylan Noblesmith2012-02-131-1/+1
| | | | | | More cleanup after r149799. llvm-svn: 150380
* drop more llvm:: prefixes on OwningPtr<>Dylan Noblesmith2012-02-133-8/+8
| | | | | | More cleanup after r149798. llvm-svn: 150379
* examples/analyzer-plugin: hook up to buildDylan Noblesmith2012-02-134-3/+4
| | | | | | | | | | | This was never being compiled at all and was bitrotting as a result. Also compile SampleAnalyzerPlugin as a module, not a library, and fix a mistake with not passing the source files to add_clang_library(). llvm-svn: 150378
* examples/analyzer-plugin/: unbreak buildDylan Noblesmith2012-02-091-2/+3
| | | | | | | It was never updated for API changes in r149311/r149336/r149339 and r147688. llvm-svn: 150202
* Adjust CLANG_BUILD_EXAMPLES to mean whether the examples are builtPeter Collingbourne2012-01-261-0/+4
| | | | | | by default, rather than whether they may be built at all. llvm-svn: 149037
* remove unneeded config.h includesDylan Noblesmith2011-12-221-2/+0
| | | | llvm-svn: 147195
* examples: flesh out PFN readmeDylan Noblesmith2011-12-181-0/+4
| | | | | | Show how to actually use the arguments it has. llvm-svn: 146845
* Update signature of HandleTopLevelDecl.Douglas Gregor2011-11-191-1/+3
| | | | llvm-svn: 145001
* rename getHostTriple into getDefaultTargetTriple in clangSebastian Pop2011-11-011-1/+1
| | | | llvm-svn: 143503
* Add support for lazily linking bitcode files (using a newPeter Collingbourne2011-10-302-1/+2
| | | | | | | -mlink-bitcode-file flag), and more generally llvm::Modules, before running optimisations. llvm-svn: 143314
* Add missing include to clang-interpreter example, to make it work on ↵Eli Friedman2011-10-061-0/+1
| | | | | | Windows. Patch by Dean Pavlekovic. llvm-svn: 141324
* Rip out flags for controlling C++ "production mode" separately.Bob Wilson2011-10-041-2/+1
| | | | | | | This is old leftover cruft from the days when C++ was not yet ready for prime time. llvm-svn: 141063
* Fix examples for r140478. PR11021.Eli Friedman2011-09-272-3/+3
| | | | llvm-svn: 140618
* Match LLVM change: TargetRegistry and TargetSelect have been moved to Support.Evan Cheng2011-08-241-1/+1
| | | | llvm-svn: 138451
* Remove EnhancedBugReport and RangedBugReport - pull all the extra ↵Anna Zaks2011-08-171-1/+1
| | | | | | functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME. llvm-svn: 137894
* Don't use BuiltinBug in analyzer plugin example.Jordy Rose2011-08-171-1/+1
| | | | llvm-svn: 137811
* [analyzer] Add basic support for pluggable checkers.Jordy Rose2011-08-173-0/+86
| | | | llvm-svn: 137802
* Reverts the Tooling changes as requested by Chris.Manuel Klimek2011-06-029-389/+1
| | | | llvm-svn: 132462
* Fixes Makefile based build for examples/Tooling.Manuel Klimek2011-06-013-3/+28
| | | | llvm-svn: 132380
* Put Parse before Sema on the link line since parse depends on sema.Nick Lewycky2011-06-011-2/+3
| | | | | | Also reflow these lines to fit in 80-col. llvm-svn: 132379
* This patch implements an AST matching framework that allows to writeManuel Klimek2011-05-314-0/+285
| | | | | | | | | | | tools that match on the C++ ASTs. The main interface is in ASTMatchers.h, an example implementation of a tool that removes redundant .c_str() calls is in the example RemoveCStrCalls.cpp. Various contributions: Zhanyong Wan, Chandler Carruth, Marcin Kowalczyk, Wei Xu, James Dennett. llvm-svn: 132374
* Fix linking of clang-wpa.Zhongxing Xu2011-05-311-3/+6
| | | | llvm-svn: 132329
* Fix examples compile break due to rewrite of isa.Manuel Klimek2011-05-231-1/+1
| | | | llvm-svn: 131912
* Pulls the common part of the clang-check example into Tooling, to allow new ↵Manuel Klimek2011-05-161-73/+6
| | | | | | tools to be implemented without duplicating the boilerplate. llvm-svn: 131425
* Let clang-check actually use the Directory entry in the json file.Nico Weber2011-05-141-0/+6
| | | | llvm-svn: 131367
* Fixes compilation with Visual Studio by replacing the non-standard ↵Manuel Klimek2011-05-101-2/+2
| | | | | | vector::data() access. llvm-svn: 131116
* Fix gcc 'warning: multi-line comment'.Nico Weber2011-04-301-2/+2
| | | | llvm-svn: 130583
* Add a Makefile to examples/Tooling for people who do not use cmake.Nico Weber2011-04-301-0/+24
| | | | llvm-svn: 130577
* Fix Makefile build of examples/clang-interpreter.Nico Weber2011-04-301-1/+1
| | | | llvm-svn: 130576
OpenPOWER on IntegriCloud