summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* libclang: expose dllexport, dllimport attributesSaleem Abdulrasool2015-12-102-0/+6
| | | | | | | These attributes were previously unexposed. Expose them through the libclang interfaces. Add tests that cover both the MSVC spelling and the GNU spelling. llvm-svn: 255273
* libclang: correct inverted logicSaleem Abdulrasool2015-12-101-2/+1
| | | | | | | The complete dtor is only emitted when there is a virtual destructor. The test itself was incorrect, so the issue in the code was not noticed. llvm-svn: 255225
* Revert r255001, "Add parse and sema for OpenMP distribute directive and all ↵NAKAMURA Takumi2015-12-092-11/+0
| | | | | | | | its clauses excluding dist_schedule." It causes memory leak. Some tests in test/OpenMP would fail. llvm-svn: 255094
* Update clang-format-vs READMEHans Wennborg2015-12-081-3/+4
| | | | | | VS2013 is requried after r231084. llvm-svn: 255029
* [OPENMP 4.5] Parsing/sema for 'num_tasks' clause.Alexey Bataev2015-12-081-0/+4
| | | | | | OpenMP 4.5 adds directives 'taskloop' and 'taskloop simd'. These directives support clause 'num_tasks'. Patch adds parsing/semantic analysis for this clause. llvm-svn: 255008
* Add parse and sema for OpenMP distribute directive and all its clauses ↵Carlo Bertolli2015-12-082-0/+11
| | | | | | excluding dist_schedule. llvm-svn: 255001
* [OPENMP 4.5] parsing/sema support for 'grainsize' clause.Alexey Bataev2015-12-071-0/+4
| | | | | | OpenMP 4.5 adds 'taksloop' and 'taskloop simd' directives, which have 'grainsize' clause. Patch adds parsing/sema analysis of this clause. llvm-svn: 254903
* [OPENMP 4.5] parsing/sema support for 'nogroup' clause.Alexey Bataev2015-12-071-0/+2
| | | | | | OpenMP 4.5 adds 'taskloop' and 'taskloop simd' directives. These directives have new 'nogroup' clause. Patch adds basic parsing/sema support for this clause. llvm-svn: 254899
* [OPENMP 4.5] Parsing/sema support for 'omp taskloop simd' directive.Alexey Bataev2015-12-032-0/+11
| | | | | | OpenMP 4.5 adds directive 'taskloop simd'. Patch adds parsing/sema analysis for 'taskloop simd' directive and its clauses. llvm-svn: 254597
* [OPENMP 4.5] Parsing/sema analysis for 'priority' clause.Alexey Bataev2015-12-011-0/+4
| | | | | | OpenMP 4.5 defines new clause 'priority' for 'task', 'taskloop' and 'taskloop simd' directives. Added parsing and sema analysis for 'priority' clause in 'task' and 'taskloop' directives. llvm-svn: 254398
* [OPENMP 4.5] Parsing/sema analysis for 'taskloop' directive.Alexey Bataev2015-12-012-0/+10
| | | | | | Adds initial parsing and semantic analysis for 'taskloop' directive. llvm-svn: 254367
* [OpenMP] Parsing and sema support for thread_limit clause.Kelvin Li2015-11-271-0/+4
| | | | | | http://reviews.llvm.org/D15029 llvm-svn: 254207
* [MSVC] 'property' with an empty array in array subscript expression.Alexey Bataev2015-11-251-0/+1
| | | | | | | | | | | | MSVC supports 'property' attribute and allows to apply it to the declaration of an empty array in a class or structure definition. For example: ``` __declspec(property(get=GetX, put=PutX)) int x[]; ``` The above statement indicates that x[] can be used with one or more array indices. In this case, i=p->x[a][b] will be turned into i=p->GetX(a, b), and p->x[a][b] = i will be turned into p->PutX(a, b, i); Differential Revision: http://reviews.llvm.org/D13336 llvm-svn: 254067
* Teach RAV to pass its DataRecursionQueue to derived classes if they ask for it,Richard Smith2015-11-241-2/+3
| | | | | | | | to allow them to explicitly opt into data recursion despite having overridden Traverse*Stmt or Traverse*Expr. Use this to reintroduce data recursion to the one place that lost it when DataRecursiveASTVisitor was removed. llvm-svn: 254041
* [OpenMP] Parsing and sema support for num_teams clauseKelvin Li2015-11-241-0/+4
| | | | | | http://reviews.llvm.org/D14802 llvm-svn: 254019
* Remove DataRecursiveASTVisitor; it no longer serves any purpose, since it's ↵Richard Smith2015-11-242-5/+5
| | | | | | just an alias for RecursiveASTVisitor. llvm-svn: 253949
* Make clang_Cursor_getMangling not mangle if the declaration isn't mangledEhsan Akhgari2015-11-233-0/+52
| | | | | | | | | | | | Right now clang_Cursor_getMangling will attempt to mangle any declaration, even if the declaration isn't mangled (extern C). This results in a partially mangled name which isn't useful for much. This patch makes clang_Cursor_getMangling return an empty string if the declaration isn't mangled. Patch by Michael Wu <mwu@mozilla.com>. llvm-svn: 253909
* clang-format: Make moving of the Cursor work properly when sorting #includes.Daniel Jasper2015-11-231-34/+33
| | | | llvm-svn: 253860
* [OpenMP] Parsing and sema support for map clauseKelvin Li2015-11-231-0/+3
| | | | | | http://reviews.llvm.org/D14134 llvm-svn: 253849
* Honor system specific paths of MAN pagesChris Bieneman2015-11-201-6/+7
| | | | | | | | | | | | | | Summary: Caught on NetBSD. Patch by: Kamil Rytarowski (krytarowski) Reviewers: beanz, jroelofs Subscribers: cfe-commits, joerg Differential Revision: http://reviews.llvm.org/D14800 llvm-svn: 253693
* [libclang] Make sure to use the raw module format for libclang parsing.Argyrios Kyrtzidis2015-11-202-1/+7
| | | | | | | Fixes crash when passing '-gmodules' in the compiler options. rdar://23588717 llvm-svn: 253645
* [libclang] Add entry points that take a full command line including argv[0].Benjamin Kramer2015-11-184-13/+42
| | | | | | | | | | | | This provides both a more uniform interface and makes libclang behave like clang tooling wrt relative paths against argv[0]. This is necessary for finding paths to a c++ standard library relative to a clang binary given in a compilation database. It can also be used to find paths relative to libclang.so if the full path to it is passed in. Differential Revision: http://reviews.llvm.org/D14695 llvm-svn: 253466
* Try to fix leak in CXStringSet from r252853Reid Kleckner2015-11-181-0/+2
| | | | llvm-svn: 253418
* clang-format: Enable #include sorting by default.Daniel Jasper2015-11-164-17/+15
| | | | | | | | | This has seen quite some usage and I am not aware of any issues. Also add a style option to enable/disable include sorting. The existing command line flag can from now on be used to override whatever is set in the style. llvm-svn: 253202
* [libclang] Visit TypeAliasTemplateDeclSergey Kalinichev2015-11-152-0/+10
| | | | | | | | This makes TypeAliasTemplateDecl accessible via LibClang and python bindings Differential Revision: http://reviews.llvm.org/D13844 llvm-svn: 253166
* [libclang] Expose AutoTypeSergey Kalinichev2015-11-151-0/+2
| | | | | | | | Expose the AutoType via LibClang and python bindings Differential Revision: http://reviews.llvm.org/D13000 llvm-svn: 253165
* Remove some trailing whitespaceSergey Kalinichev2015-11-151-10/+10
| | | | llvm-svn: 253164
* [CMake] Don't install c-index-test when LLVM_INSTALL_TOOLCHAIN_ONLY=ON.Argyrios Kyrtzidis2015-11-131-14/+16
| | | | llvm-svn: 253099
* Fix build... againJonathan Roelofs2015-11-131-1/+1
| | | | llvm-svn: 253081
* [scan-build] Make scan-build work whether it's installed or notJonathan Roelofs2015-11-1315-21/+28
| | | | llvm-svn: 253074
* [scan-build] Move non user-facing utilities to shareJonathan Roelofs2015-11-138-15/+18
| | | | llvm-svn: 253068
* scan-build: Fix install.NAKAMURA Takumi2015-11-131-1/+1
| | | | llvm-svn: 253016
* [CMake] If 'INTERNAL_INSTALL_PREFIX' is set, use it for determining the ↵Argyrios Kyrtzidis2015-11-131-6/+15
| | | | | | install destination of c-index-test and the libclang headers. llvm-svn: 253001
* Fix buildJonathan Roelofs2015-11-131-1/+1
| | | | llvm-svn: 252991
* [scan-build] Create share directory similar to scan-view'sJonathan Roelofs2015-11-134-10/+10
| | | | llvm-svn: 252981
* [scan-view] Rename 'Resources' --> 'share'Jonathan Roelofs2015-11-136-10/+10
| | | | llvm-svn: 252977
* Silencing an MSVC warning about linkage specifications and C-incompatible ↵Aaron Ballman2015-11-121-20/+20
| | | | | | UDTs by moving a function definition out of an extern "C" block. llvm-svn: 252900
* Fix c-index-test install pathIsmail Donmez2015-11-121-1/+1
| | | | llvm-svn: 252890
* libclang: add clang_Cursor_getCXXManglingsSaleem Abdulrasool2015-11-123-0/+91
| | | | | | | | | This function permits the mangling of a C++ 'structor. Depending on the ABI and the declaration, the declaration may contain more than one associated symbol for a given declaration. This allows the consumer to retrieve all of the associated symbols for the declaration the cursor points to. llvm-svn: 252853
* libclang: add new StringSet typeSaleem Abdulrasool2015-11-123-0/+18
| | | | | | | This allows the return of a set of CXStrings from libclang. This is setup work for an upcoming change to permit returning multiple mangled symbols. llvm-svn: 252852
* [CMake] Setup an install component for libclang and c-index-test.Argyrios Kyrtzidis2015-11-122-8/+15
| | | | | | Also don't create libclang dylib symlinks on darwin. llvm-svn: 252836
* [analyzer] Fix scan-build to handle missing output directories.Devin Coughlin2015-11-111-1/+3
| | | | | | | | | | | | | Cwd::abs_path has a somewhat tricky semantics: if it's operand directory does not exist, it'll return undefined (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=257568). This may cause scan-build to silently ignore output directory (specified with -o) and use /tmp instead of trying to create directory. This tiny patch fixes the problem. A patch by Yury Gribov! Differential Revision: http://reviews.llvm.org/D14535 llvm-svn: 252797
* Hiding the scan-build and scan-view projects under the Misc folder in IDEs ↵Aaron Ballman2015-11-112-0/+2
| | | | | | instead of having them at the root view. llvm-svn: 252771
* Fix buildJonathan Roelofs2015-11-101-1/+1
| | | | llvm-svn: 252667
* Implement post-commit review feedback on r252662Jonathan Roelofs2015-11-102-10/+8
| | | | llvm-svn: 252664
* Implement the fix that r252641 should have beenJonathan Roelofs2015-11-102-15/+24
| | | | llvm-svn: 252662
* Fix missing CMake dependency introduced in r252474Jonathan Roelofs2015-11-102-6/+12
| | | | llvm-svn: 252641
* No longer creating the install-clang target for IDEs, as it was never meant ↵Aaron Ballman2015-11-101-5/+8
| | | | | | for those. llvm-svn: 252601
* Fix the cmake build after r252474 broke itJonathan Roelofs2015-11-092-3/+6
| | | | llvm-svn: 252489
* Create install targets for scan-build and scan-viewJonathan Roelofs2015-11-099-6/+202
| | | | | | http://reviews.llvm.org/D14403 llvm-svn: 252474
OpenPOWER on IntegriCloud