summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Add color output to 'diagtool tree' to show what warnings are enabled by ↵Ted Kremenek2012-10-051-3/+45
| | | | | | default. llvm-svn: 165338
* [libclang] Now that we have a CXModule object, pass it to theArgyrios Kyrtzidis2012-10-052-11/+12
| | | | | | importedASTFile indexing callback. llvm-svn: 165281
* [libclang] Introduce new C functions that provide information about modules:Argyrios Kyrtzidis2012-10-053-0/+73
| | | | | | | | | | | clang_Cursor_getModule clang_Module_getParent clang_Module_getName clang_Module_getFullName clang_Module_getNumTopLevelHeaders clang_Module_getTopLevelHeader llvm-svn: 165280
* [libclang] Introduce CXCursor_ModuleImportDecl cursor kind, used for a moduleArgyrios Kyrtzidis2012-10-052-6/+25
| | | | | | import declaration. llvm-svn: 165277
* Add an explicit -object_path_lto flag during linking with a uniquified temporaryBill Wendling2012-10-031-0/+6
| | | | | | file name if building Apple-style. llvm-svn: 165184
* Remove the directory that these are already in.Bill Wendling2012-10-031-1/+1
| | | | llvm-svn: 165162
* [libclang] When indexing, invoke the importedASTFile for PCH files as well.Argyrios Kyrtzidis2012-10-033-1/+27
| | | | llvm-svn: 165161
* [libclang] Simplify indexing of module imports by handling implicitArgyrios Kyrtzidis2012-10-035-23/+16
| | | | | | imports via ImportDecls. llvm-svn: 165160
* clang-check: Add clangRewriteCore.a to the Makefile build to make it link again.Benjamin Kramer2012-10-031-2/+2
| | | | llvm-svn: 165119
* As opposed to the clang-fixit tool described onDaniel Jasper2012-10-033-5/+74
| | | | | | | | | http://clang.llvm.org/docs/ClangTools.html, this adds -fixit option to clang-check. Thus, clang-check can become a general-purpose tool to run clang capitalizing on the info stored in a compilation database. Review: http://llvm-reviews.chandlerc.com/D51 llvm-svn: 165110
* Comment to XML conversion: escape XML special chars correctly; use correctDmitri Gribenko2012-10-031-11/+9
| | | | | | regex for version tuples. llvm-svn: 165104
* The top-level clang Makefile is #included into other Makefiles. (sigh) So weBill Wendling2012-10-031-0/+5
| | | | | | | | can't have the logic here to add in the 'tools/{driver,libclang}' directories, because they will be added in for ALL Makefiles which #include the top-level one. Place the logic into the 'tools' Makefile. llvm-svn: 165103
* Some renames to use the 'visitor' nomenclature, no functionality change.Argyrios Kyrtzidis2012-10-031-2/+2
| | | | llvm-svn: 165083
* [Doc parse]: SUpport for message in deprecated/unavailableFariborz Jahanian2012-10-021-5/+19
| | | | | | attribute going iinto XML document. llvm-svn: 165066
* [libclang] When indexing an AST file, only deserialize the file levelArgyrios Kyrtzidis2012-10-021-23/+9
| | | | | | declarations of the current primary module. llvm-svn: 165046
* [Doc parsing]: Add available and deprecated attribute infoFariborz Jahanian2012-10-021-1/+6
| | | | | | to XML output. // rdar://12378879 llvm-svn: 165039
* [libclang] When indexing an AST file, only deserialize the preprocessing recordArgyrios Kyrtzidis2012-10-021-12/+1
| | | | | | entities of the current primary module. llvm-svn: 165023
* Add info in the preprocessing record whether an inclusion directiveArgyrios Kyrtzidis2012-10-021-1/+2
| | | | | | resulted in an automatic module import. llvm-svn: 165022
* [libclang] Even though we disable the preprocessing record during indexing,Argyrios Kyrtzidis2012-10-022-6/+20
| | | | | | make sure that it gets enabled for when a module needs to be created. llvm-svn: 165021
* [libclang] Implement the importedASTFile indexing callback to provideArgyrios Kyrtzidis2012-10-025-1/+59
| | | | | | info about imported modules. llvm-svn: 165020
* availability in structured documents. TakesFariborz Jahanian2012-10-011-33/+27
| | | | | | care of comments by Dimitri and Doug. llvm-svn: 164957
* Remove this hack in favor of another, better way of performing the same thing.Bill Wendling2012-09-301-4/+0
| | | | llvm-svn: 164915
* Move the 'find macro by spelling' infrastructure to the Preprocessor class andDmitri Gribenko2012-09-291-1/+1
| | | | | | | use it to suggest appropriate macro for __attribute__((deprecated)) in -Wdocumentation-deprecated-sync. llvm-svn: 164892
* For PPCallbacks::InclusionDirective() add a parameter for the module, wheneverArgyrios Kyrtzidis2012-09-291-1/+2
| | | | | | | an inclusion directive was automatically turned into a module import, and PPCallbacks::moduleImport() for an explicit module import. llvm-svn: 164874
* [Doc parsing] Add availability information to generated Comment XML.Fariborz Jahanian2012-09-281-1/+56
| | | | | | | (I still need to add a test once I figure it out). Reviewed off-line by Doug. // rdar://12378879 llvm-svn: 164861
* Per discussion in ↵Argyrios Kyrtzidis2012-09-271-1/+1
| | | | | | | | | | http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120917/064551.html have PPCallbacks::InclusionDirective pass the character range for the filename quotes or brackets. rdar://11113134 & http://llvm.org/PR13880 llvm-svn: 164743
* Use a variable to stop us from building clang testing tools.Bill Wendling2012-09-271-0/+4
| | | | | | <rdar://problem/11202465> llvm-svn: 164739
* Have set-xcode-analyer report an error if no xcspec file could be found.Ted Kremenek2012-09-261-0/+5
| | | | llvm-svn: 164713
* Make set-xcode-analyzer more tolerant of the naming differenes reported by ↵Ted Kremenek2012-09-261-1/+1
| | | | | | xcode-select. llvm-svn: 164712
* [libclang] Remove the ParentKind cursor kind from code-completion results.Argyrios Kyrtzidis2012-09-261-2/+0
| | | | | | This is to reduce dependency to cursors for the code-completion results. llvm-svn: 164705
* Have ASTUnit::Save() return a bool to indicate save error.Argyrios Kyrtzidis2012-09-261-1/+2
| | | | | | Removes a dependency of ASTUnit to clang-c/Index.h. llvm-svn: 164704
* Fix the AST representation for non-type template arguments to encodeEli Friedman2012-09-263-4/+13
| | | | | | | | | | | | enough information so we can mangle them correctly in cases involving dependent parameter types. (This specifically impacts cases involving null pointers and cases involving parameters of reference type.) Fix the mangler to use this information instead of trying to scavenge it out of the parameter declaration. <rdar://problem/12296776>. llvm-svn: 164656
* [libclang] Do a AST concurrency check in clang_indexTranslationUnit_Impl.Argyrios Kyrtzidis2012-09-251-0/+2
| | | | llvm-svn: 164626
* ccc-analyzer: pass -stdlib=libc++ through to the analyzer.Benjamin Kramer2012-09-191-0/+1
| | | | | | Otherwise clang can't analyze code that relies on features provided by libc++. llvm-svn: 164262
* Follow up on llvm r164132.Roman Divacky2012-09-181-2/+2
| | | | llvm-svn: 164133
* Use LLVM_DELETED_FUNCTION in place of 'DO NOT IMPLEMENT' comments.Dmitri Gribenko2012-09-151-2/+2
| | | | llvm-svn: 163983
* Revert "Utilize new build system support in Xcode 4.5 for easier interposition"Ted Kremenek2012-09-151-30/+0
| | | | | | | It's not clear if this is working yet on the buildbot. Reverting until we have time to investigate. llvm-svn: 163963
* Utilize new build system support in Xcode 4.5 for easier interpositionTed Kremenek2012-09-141-0/+30
| | | | | | of a build without needing to use ccc-analyzer. llvm-svn: 163927
* scan-build: Determine the location of the clang binary before printing help.Jordan Rose2012-09-141-60/+63
| | | | | | We need the clang executable to print the list of available checkers. llvm-svn: 163925
* PR13811: Add a FunctionParmPackExpr node to handle references to functionRichard Smith2012-09-122-0/+2
| | | | | | | parameter packs where the reference is not being expanded but the pack has been. Previously, Clang would segfault in such cases. llvm-svn: 163672
* Just revert r163605 for now. It broke the build and had someChandler Carruth2012-09-111-26/+11
| | | | | | questionable elements to the patch. llvm-svn: 163609
* Select the correct, or, failing that, compatible, dialect when invoked as cc,David Chisnall2012-09-111-11/+26
| | | | | | | c89, c99, and so on. No change to the default dialect when invoked as clang / clang++. llvm-svn: 163605
* [libclang] Do index 'extern' declarations inside functions.Argyrios Kyrtzidis2012-09-104-4/+38
| | | | | | rdar://12257073 llvm-svn: 163563
* Comment AST: TableGen'ize all command lists in CommentCommandTraits.cpp.Dmitri Gribenko2012-09-104-42/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we have a list of all commands. This is a good thing in itself, but it also enables us to easily implement typo correction for command names. With this change we have objects that contain information about each command, so it makes sense to resolve command name just once during lexing (currently we store command names as strings and do a linear search every time some property value is needed). Thus comment token and AST nodes were changed to contain a command ID -- index into a tables of builtin and registered commands. Unknown commands are registered during parsing and thus are also uniformly assigned an ID. Using an ID instead of a StringRef is also a nice memory optimization since ID is a small integer that fits into a common bitfield in Comment class. This change implies that to get any information about a command (even a command name) we need a CommandTraits object to resolve the command ID to CommandInfo*. Currently a fresh temporary CommandTraits object is created whenever it is needed since it does not have any state. But with this change it has state -- new commands can be registered, so a CommandTraits object was added to ASTContext. Also, in libclang CXComment has to be expanded to include a CXTranslationUnit so that all functions working on comment AST nodes can get a CommandTraits object. This breaks binary compatibility of CXComment APIs. Now clang_FullComment_getAsXML(CXTranslationUnit TU, CXComment CXC) doesn't need TU parameter anymore, so it was removed. This is a source-incompatible change for this C API. llvm-svn: 163540
* Workaround for MacOSX build failure with gcc <= 4.4Alexander Kornienko2012-09-101-6/+6
| | | | | | | | | | | | | | | | Summary: A better solution to http://llvm.org/bugs/show_bug.cgi?id=13777 Named namespace + more unique name to make ODR violations unlikely. Reviewers: chandlerc, doug.gregor, klimek Reviewed By: doug.gregor CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D38 llvm-svn: 163513
* Fixed http://llvm.org/bugs/show_bug.cgi?id=13777Alexander Kornienko2012-09-071-2/+4
| | | | llvm-svn: 163429
* Revert r163083 per chandlerc's request.Joao Matos2012-09-041-1/+0
| | | | llvm-svn: 163149
* Revert r163099 per chandlerc's request.Joao Matos2012-09-042-6/+0
| | | | llvm-svn: 163147
* Added a new cursor for SEHLeaveStmt to libclang.Joao Matos2012-09-032-0/+6
| | | | llvm-svn: 163099
* Implemented parsing and AST support for the MS __leave exception statement. ↵Joao Matos2012-09-021-0/+1
| | | | | | Also a minor fix to __except printing in StmtPrinter.cpp. Thanks to Aaron Ballman for review. llvm-svn: 163083
OpenPOWER on IntegriCloud