summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Fully reverting r203236 -- it seems the only bots that are happy are the ↵Aaron Ballman2014-03-072-7/+11
| | | | | | MSVC bots. llvm-svn: 203237
* [C++11] Replacing iterators attr_begin() and attr_end() with iterator_range ↵Aaron Ballman2014-03-072-11/+7
| | | | | | attrs(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203236
* Remove a dead store, add a FIXME for another.Richard Smith2014-03-061-1/+1
| | | | llvm-svn: 203169
* [OPENMP] Clause 'num_threads'Alexey Bataev2014-03-061-0/+4
| | | | llvm-svn: 203087
* Fix -Wsign-compare warning.Jordan Rose2014-03-041-2/+3
| | | | | | No functionality change. llvm-svn: 202864
* [cleanup] Re-sort includes with llvm/utils/sort_includes.py and fixChandler Carruth2014-03-043-2/+3
| | | | | | | | | | | | a missing include from CLog.h. CLog.h referenced most of the core libclang types but never directly included Index.h that provides them. Previously it got lucky and other headers were always included first but with the sorting it ended up first in one case and stopped compiling. Adding the Index.h include fixes it right up. llvm-svn: 202810
* [libclang] Have clang_getCursorSpelling() return the string for a ↵Argyrios Kyrtzidis2014-03-031-0/+16
| | | | | | | | CXCursor_ObjCStringLiteral or CXCursor_StringLiteral cursor. rdar://16206459 llvm-svn: 202745
* Serialized diagnostic severity levels should be stable.Jordan Rose2014-03-031-8/+14
| | | | | | | | | Serialized diagnostics were accidentally using the AST diagnostic level values rather than a dedicated stable enum, so the addition of "remark" broke the reading of existing serialized diagnostics files. I've added a .dia file generated from Xcode 5's Clang to make sure we don't break this in the future. llvm-svn: 202733
* [libclang] Introduce APIs that assist in constructing a simple module.map ↵Argyrios Kyrtzidis2014-03-032-0/+63
| | | | | | | | file for a user framework. rdar://16092858 llvm-svn: 202681
* [libclang] Change clang_VirtualFileOverlay_writeToBuffer to return a ↵Argyrios Kyrtzidis2014-03-031-4/+8
| | | | | | | | malloc'ed buffer. Returning CXString is not appropriate if we want to switch to a non-string format buffer. llvm-svn: 202675
* [C++11] Use std::atomic instead of LLVM's.Benjamin Kramer2014-03-021-10/+8
| | | | | | No intended functionality change. llvm-svn: 202652
* [C++11] Replace llvm::tie with std::tie.Benjamin Kramer2014-03-022-4/+4
| | | | llvm-svn: 202639
* Switch all uses of LLVM_OVERRIDE to just use 'override' directly.Craig Topper2014-03-022-2/+2
| | | | llvm-svn: 202625
* [C++11] Replace verbose functors with succinct lambdasBenjamin Kramer2014-03-011-14/+6
| | | | | | No functionality change. llvm-svn: 202590
* Now that llvm's build system sets -install_name, we don't need to.Rafael Espindola2014-02-282-10/+0
| | | | llvm-svn: 202500
* Add 'remark' diagnostic type in 'clang'Tobias Grosser2014-02-284-0/+4
| | | | | | | | | | | | | | | | | | | | | | | A 'remark' is information that is not an error or a warning, but rather some additional information provided to the user. In contrast to a 'note' a 'remark' is an independent diagnostic, whereas a 'note' always depends on another diagnostic. A typical use case for remark nodes is information provided to the user, e.g. information provided by the vectorizer about loops that have been vectorized. This patch provides the initial implementation of 'remarks'. It includes the actual definiton of the remark nodes, their printing as well as basic parameter handling. We are reusing the existing diagnostic parameters which means a remark can be enabled with normal '-Wdiagnostic-name' flags and can be upgraded to an error using '-Werror=diagnostic-name'. '-Werror' alone does not upgrade remarks. This patch is by intention minimal in terms of parameter handling. More experience and more discussions will most likely lead to further enhancements in the parameter handling. llvm-svn: 202475
* libclang: New functions clang_Type_getNumTemplateArguments,Dmitri Gribenko2014-02-273-3/+54
| | | | | | | | | | clang_Type_getTemplateArgument Note that these functions don't handle variadic templates -- see tests. Patch by Matthieu Nottale and Philippe Daouadi. llvm-svn: 202406
* [OPENMP] First changes for Parsing and Sema for 'omp simd' directive supportAlexey Bataev2014-02-272-3/+12
| | | | llvm-svn: 202360
* Add newlines to fallback-style description. Patch by Kamal Essoufi\!Alexander Kornienko2014-02-261-3/+4
| | | | llvm-svn: 202269
* Add preprocessed output to ccc-analyzer's accepted language map.Ted Kremenek2014-02-251-1/+4
| | | | llvm-svn: 202182
* [libclang] Introduce libclang APIs for creating a buffer with a JSON virtual ↵Argyrios Kyrtzidis2014-02-252-2/+179
| | | | | | | | | | file overlay description. The current API only supports adding 'virtual file path' -> 'real file path' mappings. rdar://15986708 llvm-svn: 202105
* Update for llvm api change.Rafael Espindola2014-02-241-1/+1
| | | | llvm-svn: 202053
* Remove support for the QA_OVERRIDE_GCC3_OPTIONS environment variable.Bob Wilson2014-02-231-5/+1
| | | | | | | | | | In r199283 I switched the name of this variable to CCC_OVERRIDE_OPTIONS, but I kept some code to continue recognizing the old name temporarily. As far as I know, the only use of this was for some internal testing at Apple, and we've now switched to use the new name. If anyone else is still using this and needs more time to switch names, I guess we'll find out! <rdar://problem/15821425> llvm-svn: 201962
* [CMake] libclang: Use llvm_add_library(SHARED STATIC).NAKAMURA Takumi2014-02-211-37/+33
| | | | llvm-svn: 201862
* [CMake] Get rid of explicit dependencies to include/clang/*.inc and ↵NAKAMURA Takumi2014-02-212-20/+4
| | | | | | | | | | | | | | | | | | | introduce CLANG_TABLEGEN_TARGETS. This does; - clang_tablegen() adds each tblgen'd target to global property CLANG_TABLEGEN_TARGETS as list. - List of targets is added to LLVM_COMMON_DEPENDS. - all clang libraries and targets depend on generated headers. You might wonder this would be regression, but in fact, this is little loss. - Almost all of clang libraries depend on tblgen'd files and clang-tblgen. - clang-tblgen may cause short stall-out but doesn't cause unconditional rebuild. - Each library's dependencies to tblgen'd files might vary along headers' structure. It made hard to track and update *really optimal* dependencies. Each dependency to intrinsics_gen and ClangSACheckers is left as DEPENDS. llvm-svn: 201842
* libclang: ensure clang_createTranslationUnit2 always initializes *TUDmitri Gribenko2014-02-191-1/+4
| | | | llvm-svn: 201657
* CIndex: initialise TUSaleem Abdulrasool2014-02-191-1/+1
| | | | | | | | | | | TU is not guaranteed to be initialised in all cases. In particular if CIdx or ast_filename is NULL (or if &TU is NULL), then clang_createTranslationUnit2 will not initialise the out parameter out_TU. This is followed by an assertion check which may perform a branch based on unitialised memory. Caught by scan-build. llvm-svn: 201628
* In some cases (for example, the Firefox build system), the CLANG_CXX ↵Sylvestre Ledru2014-02-181-4/+4
| | | | | | | | | variable is defined but empty. Extend the test (like it is done in scan-build) to check also if the variable is empty or not. llvm-svn: 201586
* Remove trailing spaces (no other change). Bikeshed #2Sylvestre Ledru2014-02-184-73/+70
| | | | llvm-svn: 201584
* libclang: fix a bug in processing invalid arguments, introduced in r201249Dmitri Gribenko2014-02-181-10/+7
| | | | | | Recommit r201346, reverted in r201373. llvm-svn: 201578
* Remove trailing spaces (no other change)Sylvestre Ledru2014-02-181-177/+176
| | | | llvm-svn: 201570
* Fix gcc warning about C++ style comments.Patrik Hagglund2014-02-171-1/+1
| | | | llvm-svn: 201512
* Revert "libclang: fix a bug in processing invalid arguments, introduced in ↵Juergen Ributzka2014-02-131-7/+10
| | | | | | | | r201249," Reverting commit (201346) for now, because it is breaking our internal builds. llvm-svn: 201373
* libclang: fix a bug in processing invalid arguments, introduced in r201249,Dmitri Gribenko2014-02-131-10/+7
| | | | | | pointed out by Daniel Jasper in r201329 llvm-svn: 201346
* Remove assert added in r201249.Daniel Jasper2014-02-131-2/+6
| | | | | | | | | | | This triggers on one of our internal tests. Dmitri: I do not understand this part of the codebase well enough to locate the underlying cause easily. If the correct fix is not obvious, I can try to debug the problem further or try to come up with reduced test case. llvm-svn: 201329
* [OPENMP] 'if' clause support (no CodeGen support)Alexey Bataev2014-02-131-0/+4
| | | | llvm-svn: 201297
* Really fix unused variable warnings in CIndex.Reid Kleckner2014-02-131-0/+1
| | | | llvm-svn: 201285
* Silence unused variable warning in CIndex.cpp with NDEBUGReid Kleckner2014-02-121-0/+1
| | | | llvm-svn: 201276
* libclang: report error code for bad PCH filesDmitri Gribenko2014-02-125-130/+291
| | | | | | | | | | | | | | | | | | | This commit improves libclang to report the error condition when CXTranslationUnit can not be created because of a stale PCH file. This allows the caller, for example, to rebuild the PCH file and retry the request. There two are APIs in libclang that return a CXTranslationUnit and don't support reporting detailed errors (the only error condition is a NULL result). For these APIs, a second, superior, version is introduced -- clang_createTranslationUnit2 and clang_parseTranslationUnit2. These functions return a CXTranslationUnit indirectly and also return an error code. Old functions are still supported and are nothing more than convenience wrappers that ignore extended error codes. As a cleanup, this commit also categorizes some libclang errors in the functions I had to modify anyway. llvm-svn: 201249
* libclang: fix a crash in clang_disposeDiagnosticSet when it is passed a NULL ↵Dmitri Gribenko2014-02-121-3/+4
| | | | | | argument llvm-svn: 201236
* 'svn add' files I forgot for r201224 (Add an option to allow Clang verifyDmitri Gribenko2014-02-121-0/+22
| | | | | | source files for a module only once during) llvm-svn: 201225
* Add an option to allow Clang verify source files for a module only once duringDmitri Gribenko2014-02-123-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the build When Clang loads the module, it verifies the user source files that the module was built from. If any file was changed, the module is rebuilt. There are two problems with this: 1. correctness: we don't verify system files (there are too many of them, and stat'ing all of them would take a lot of time); 2. performance: the same module file is verified again and again during a single build. This change allows the build system to optimize source file verification. The idea is based on the fact that while the project is being built, the source files don't change. This allows us to verify the module only once during a single build session. The build system passes a flag, -fbuild-session-timestamp=, to inform Clang of the time when the build started. The build system also requests to enable this feature by passing -fmodules-validate-once-per-build-session. If these flags are not passed, the behavior is not changed. When Clang verifies the module the first time, it writes out a timestamp file. Then, when Clang loads the module the second time, it finds a timestamp file, so it can compare the verification timestamp of the module with the time when the build started. If the verification timestamp is too old, the module is verified again, and the timestamp file is updated. llvm-svn: 201224
* update of the clang version (should probably managed in the configure)Sylvestre Ledru2014-02-111-1/+1
| | | | llvm-svn: 201182
* Fix a typo in the function name that I just introduced (r201155)Dmitri Gribenko2014-02-118-26/+26
| | | | llvm-svn: 201156
* libclang: audit all APIs that accept a CXTranslationUnit to make sure thatDmitri Gribenko2014-02-118-26/+123
| | | | | | | checks for invalid translation unit are in place. Also, while there, add log output for this case. llvm-svn: 201155
* libclang: use namespace qualifiers in the macro, so that it does not requireDmitri Gribenko2014-02-111-1/+2
| | | | | | 'using namespace clang::cxindex'. llvm-svn: 201146
* [libclang] While visiting a C++ destructor decl, keep the type identifier ↵Argyrios Kyrtzidis2014-02-091-2/+3
| | | | | | | | | | associated with the decl, don't turn it into a type ref. rdar://15907618 llvm-svn: 201042
* ASTUnit: ArrayRef'ize RemappedFilesDmitri Gribenko2014-02-072-10/+7
| | | | llvm-svn: 200975
* Update for llvm api change.Rafael Espindola2014-02-051-1/+0
| | | | llvm-svn: 200863
* Make the OptionCategory variable static.Alexander Kornienko2014-02-051-1/+1
| | | | llvm-svn: 200839
OpenPOWER on IntegriCloud