summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove outdated part of help message.Daniel Jasper2013-04-081-1/+0
| | | | | | | The styles are now documented with the -style option. This fixes llvm.org/PR15689. llvm-svn: 179017
* [libclang] Fix cursor visitation to not ignore template arguments in ↵Argyrios Kyrtzidis2013-04-051-0/+14
| | | | | | | | out-of-line member functions. rdar://13535645 llvm-svn: 178911
* [libclang] Add some checks to make sure the given CXTranslationUnit is not ↵Argyrios Kyrtzidis2013-04-041-1/+7
| | | | | | null, before using it. llvm-svn: 178800
* cmake: mark clang as needing exported symbol.Rafael Espindola2013-04-041-0/+1
| | | | | | | This is a nop right now, but committing this first avoids a temporary breakage when the llvm files change to not default to exporting symbols. llvm-svn: 178723
* [libclang] Make clang_Cursor_getArgument work with call-exprs.Argyrios Kyrtzidis2013-04-011-0/+18
| | | | | | Patch by Matthias Kleine! llvm-svn: 178475
* [libclang] If libclang logging is enabled, print all compiler diagnostics to ↵Argyrios Kyrtzidis2013-03-291-3/+7
| | | | | | stderr instead of capturing them. llvm-svn: 178373
* [cmake] Add clang-headers as a dependency of libclang and if we have to copy ↵Argyrios Kyrtzidis2013-03-291-2/+2
| | | | | | | | them for the IDE case, also create a symlink inside the libclang.dylib directory. llvm-svn: 178372
* Update the error handing static functions for r178161.Chad Rosier2013-03-273-6/+9
| | | | | | Part of rdar://13296693 llvm-svn: 178162
* Remove a FIXME that's not planned to be fixed. We only generated crashChad Rosier2013-03-261-3/+0
| | | | | | diagnostics for the first failing command. llvm-svn: 178086
* [Preprocessor/Modules] Separate the macro directives kinds into their own ↵Argyrios Kyrtzidis2013-03-261-5/+7
| | | | | | | | | | | | | | | | MacroDirective's subclasses. For each macro directive (define, undefine, visibility) have a separate object that gets chained to the macro directive history. This has several benefits: -No need to mutate a MacroDirective when there is a undefine/visibility directive. Stuff like PPMutationListener become unnecessary. -No need to keep extra source locations for the undef/visibility locations for the define directive object (which is the majority of the directives) -Much easier to hide/unhide a section in the macro directive history. -Easier to track the effects of the directives across different submodules. llvm-svn: 178037
* Manually specify the link dependencies. Turns out that all the work onChandler Carruth2013-03-261-1/+1
| | | | | | | LLVMBuild stuff didn't actually provide a single place for dependencies, it just added a third place. llvm-svn: 177989
* The IRReader header is now part of its own library. Update the includeChandler Carruth2013-03-261-0/+1
| | | | | | line and the library dependencies to reflect this. llvm-svn: 177972
* Add clang-format to the corresponding Makefile.Daniel Jasper2013-03-221-1/+1
| | | | llvm-svn: 177727
* OpenMP threadprivate directive parsing and semantic analysisAlexey Bataev2013-03-222-0/+10
| | | | llvm-svn: 177705
* [analyzer] scan-build: emit errors on stderr, and exit(1) instead of exit(0).Jordan Rose2013-03-211-19/+27
| | | | | | PR14963 llvm-svn: 177678
* Add clang-format binary to cfe.Daniel Jasper2013-03-206-0/+369
| | | | llvm-svn: 177506
* [libclang] Modify clang_getCursorType to be able to handle a function ↵Argyrios Kyrtzidis2013-03-181-0/+2
| | | | | | template decl. llvm-svn: 177359
* [analyzer] Fix scan-build's -stats mode.Jordan Rose2013-03-141-8/+9
| | | | | | | | | We were failing to match the output line, which led to us collecting no stats at all, which led to a divide-by-zero error. Fixes PR15510. llvm-svn: 177084
* [Modules] Resolve top-headers of modules lazily.Argyrios Kyrtzidis2013-03-132-9/+15
| | | | | | | | | | | This allows resolving top-header filenames of modules to FileEntries when we need them, not eagerly. Note that that this breaks ABI for libclang functions clang_Module_getTopLevelHeader / clang_Module_getNumTopLevelHeaders but this is fine because they are experimental and not widely used yet. llvm-svn: 176975
* [libclang] Fix a test and a warning on windows.Argyrios Kyrtzidis2013-03-111-1/+1
| | | | | | Patch by Guy Benyei! llvm-svn: 176806
* Driver: do not strip file extensions when printing diagnostics.Benjamin Kramer2013-03-101-1/+1
| | | | | | | | | | Before: clang-3: error: no input files After: clang-3.3: error: no input files This means that we'll also print clang.exe on windows, but I don't see a problem with that. llvm-svn: 176788
* [libclang] Change clang_findReferencesInFile and clang_findIncludesInFile to ↵Argyrios Kyrtzidis2013-03-081-25/+25
| | | | | | | | return an enum, as suggested by Jordan. llvm-svn: 176732
* [libclang] Modify clang_findReferencesInFile and clang_findIncludesInFile to ↵Argyrios Kyrtzidis2013-03-083-59/+68
| | | | | | | | | | | return a value. Possible values are: 1 : if a parameter was invalid -1 : if the callback returned CXVisit_Break, otherwise returns 0. llvm-svn: 176716
* [libclang] Introduce clang_findIncludesInFile, that can be used to retrieve ↵Argyrios Kyrtzidis2013-03-083-1/+205
| | | | | | | | | all #import/#include directives in a specific file. It passes to the visitor, that the caller provides, CXCursor_InclusionDirective cursors for all the include directives in a particular file. llvm-svn: 176682
* [libclang] When calling the function of CXCursorAndRangeVisitor, don't forget toArgyrios Kyrtzidis2013-03-081-4/+6
| | | | | | stop visitation if it returns CXVisit_Break. llvm-svn: 176681
* [libclang] Add Logger::operator<< overloads for CXCursor and FileEntry.Argyrios Kyrtzidis2013-03-083-0/+18
| | | | llvm-svn: 176680
* [libclang] When logging a CXTranslationUnit that came from an AST file, ↵Argyrios Kyrtzidis2013-03-051-0/+2
| | | | | | print out the filename. llvm-svn: 176511
* scan-build: explicitly say "No bugs found" if there are no reports.Jordan Rose2013-03-051-0/+1
| | | | | | Patch by Martin Storsjo! llvm-svn: 176472
* Fix typos: [Dd]iagnosic -> [Dd]iagnosticStefanus Du Toit2013-03-012-9/+9
| | | | | | These all appear in comments or (ironically) diagnostics output. llvm-svn: 176383
* doxygen command. Add 'attention' command to list of similarFariborz Jahanian2013-02-261-0/+1
| | | | | | doxygen commands. // rdar://12379053 llvm-svn: 176127
* [preprocessor] Use MacroDirective in the preprocessor callbacks to make ↵Argyrios Kyrtzidis2013-02-241-3/+4
| | | | | | | | available the full information about the macro (e.g if it was imported and where). llvm-svn: 175978
* Revert r175912, "Add support for coldcc to clang" at John's request.Peter Collingbourne2013-02-231-1/+0
| | | | llvm-svn: 175936
* Add support for coldcc to clangPeter Collingbourne2013-02-221-0/+1
| | | | llvm-svn: 175912
* Suppress -Wswitch to unbreak the build.David Blaikie2013-02-221-0/+1
| | | | | | | This may need to be fixed more intelligently - I don't have enough context to be sure what the appropriate fix is right now. llvm-svn: 175902
* [Sema] Semantic analysis for empty-declaration and attribute-declaration.Michael Han2013-02-221-0/+2
| | | | | | | | Introduce a new AST Decl node "EmptyDecl" to model empty-declaration. Have attributes from attribute-declaration appertain to the EmptyDecl node by creating the AST representations of these attributes and attach them to the EmptyDecl node so these attributes can be sema checked just as attributes attached to "normal" declarations. llvm-svn: 175900
* Streamify getNameForDiagnostic and remove the string versions of ↵Benjamin Kramer2013-02-221-2/+2
| | | | | | PrintTemplateArgumentList. llvm-svn: 175894
* scan-build: Remove debug print.Benjamin Kramer2013-02-221-1/+0
| | | | | | PR15329. llvm-svn: 175889
* [scan-build] Add quotes around clang executable name to handle path withs ↵Ted Kremenek2013-02-211-1/+2
| | | | | | spaces. Fixes <rdar://problem/13254727> llvm-svn: 175790
* [scan-build] fix xcode version parsing to handle dot releases. Fixes ↵Ted Kremenek2013-02-211-3/+6
| | | | | | <rdar://problem/13265300>. llvm-svn: 175781
* [driver] Handle the processing of the QA_OVERRIDE_GCC3_OPTIONS and CCC_ADD_ARGSChad Rosier2013-02-211-26/+26
| | | | | | | | before the DiagnosticsEngine is instantiated. Otherwise, warning options are not handled correctly. rdar://13254743 llvm-svn: 175779
* CIndex.cpp: Appease g++-4.4. "if (Optional<unsigned> Minor = In.getMinor())" ↵NAKAMURA Takumi2013-02-211-2/+4
| | | | | | did not work as expected. llvm-svn: 175711
* Use None rather than Optional<T>() where possible.David Blaikie2013-02-211-2/+2
| | | | llvm-svn: 175705
* Strip 'llvm' from 'llvm::Optional' uses.Ted Kremenek2013-02-212-8/+8
| | | | llvm-svn: 175701
* [preprocessor] Split the MacroInfo class into two separate concepts, ↵Argyrios Kyrtzidis2013-02-201-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | MacroInfo class for the data specific to a macro definition (e.g. what the tokens are), and MacroDirective class which encapsulates the changes to the "macro namespace" (e.g. the location where the macro name became active, the location where it was undefined, etc.) (A MacroDirective always points to a MacroInfo object.) Usually a macro definition (MacroInfo) is where a macro name becomes active (MacroDirective) but splitting the concepts allows us to better model the effect of modules to the macro namespace (also as a bonus it allows better modeling of push_macro/pop_macro #pragmas). Modules can have their own macro history, separate from the local (current translation unit) macro history; MacroDirectives will be used to model the macro history (changes to macro namespace). For example, if "@import A;" imports macro FOO, there will be a new local MacroDirective created to indicate that "FOO" became active at the import location. Module "A" itself will contain another MacroDirective in its macro history (at the point of the definition of FOO) and both MacroDirectives will point to the same MacroInfo object. Introducing the separation of macro concepts is the first part towards better modeling of module macros. llvm-svn: 175585
* Replace TypeLoc llvm::cast support to be well-defined.David Blaikie2013-02-184-23/+22
| | | | | | | | | | | | | | The TypeLoc hierarchy used the llvm::cast machinery to perform undefined behavior by casting pointers/references to TypeLoc objects to derived types and then using the derived copy constructors (or even returning pointers to derived types that actually point to the original TypeLoc object). Some context is in this thread: http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-December/056804.html Though it's spread over a few months which can be hard to read in the mail archive. llvm-svn: 175462
* libclang: don't store nul-terminated strings as StringRefs,Dmitri Gribenko2013-02-182-16/+15
| | | | | | | | | | if the nul-terminatedness property is important for clients. Also, don't return the same CXString multiple times. This did not create a correctness issue in practice because the CXString was of an CXS_Unmanaged kind, and destruction was a no-op. llvm-svn: 175455
* libclang: remove reinterpret_casts by using SourceLocation::getPtrEncodingDmitri Gribenko2013-02-161-14/+14
| | | | llvm-svn: 175333
* libclang: add clang_getTypeSpelling(CXType CT)Dmitri Gribenko2013-02-153-17/+37
| | | | | | | | | Adds a function clang_getTypeSpelling(CXType CT) that returns a CXString containing the underlying type. Patch by Ben Gertzfield. llvm-svn: 175299
* libclang: remove reinterpret_casts by using SourceLocation::getFromPtrEncodingDmitri Gribenko2013-02-141-24/+12
| | | | | | directly instead of casting a pointer to an integer llvm-svn: 175206
* Teach ccc-analyze to pass on -iquote with no spaces between it an the argument.Ted Kremenek2013-02-141-0/+5
| | | | llvm-svn: 175115
OpenPOWER on IntegriCloud