summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* libclang: introduce cxstring::{createRef,createDup} for StringRefsDmitri Gribenko2013-02-0211-90/+111
| | | | | | Also migrate all clients from the old API. llvm-svn: 174263
* Add some horrible Perl code to teach scan-build to recursively walk a ↵Ted Kremenek2013-02-021-9/+22
| | | | | | directory for HTML files. llvm-svn: 174260
* libclang: introduce cxstring::{createRef,createDup} for C stringsDmitri Gribenko2013-02-028-181/+200
| | | | | | Also migrate all clients from the old API. llvm-svn: 174238
* Comment parsing: improve the fidelity of XML output for many block commandsDmitri Gribenko2013-02-011-3/+42
| | | | | | | | | | | | | | This change introduces a 'kind' attribute for the <Para> tag, that captures the kind of the parent block command. For example: \todo Meow. used to be just <Para>Meow.</Para>, but now it is <Para kind="todo">Meow.</Para> llvm-svn: 174216
* libclang: document the purpose of createNull()Dmitri Gribenko2013-02-011-0/+2
| | | | llvm-svn: 174195
* libclang: add comments for CXStringFlagDmitri Gribenko2013-02-011-1/+12
| | | | llvm-svn: 174194
* libclang: itroduce cxstring::createEmpty()Dmitri Gribenko2013-02-0110-43/+53
| | | | llvm-svn: 174174
* libclang: introduce cxstring::createNull()Dmitri Gribenko2013-02-016-26/+36
| | | | llvm-svn: 174173
* [Comment parsing] Add support for recognizingFariborz Jahanian2013-01-311-2/+15
| | | | | | | | \headerfile command and representing it in an xml document. Patch reviewed by Dmitri Gribenko. // rdar://12397511 llvm-svn: 174109
* Attempt to fix Windows build breakage.Evgeniy Stepanov2013-01-311-1/+2
| | | | llvm-svn: 174060
* Allow the computation of the base priority for a declaration code completion ↵Douglas Gregor2013-01-311-1/+1
| | | | | | result to consider the completion context llvm-svn: 174037
* scan-build: When using Xcode 4.6, use build settings for doing proper build ↵Ted Kremenek2013-01-301-0/+30
| | | | | | interposition. llvm-svn: 173954
* [driver] Refactor the driver so that a failing commands doesn't preventChad Rosier2013-01-291-8/+24
| | | | | | | | | | | subsequent commands from being executed. The diagnostics generation isn't designed for this use case, so add a note to fix this in the very near future. For now, just generated the diagnostics for the first failing command. Part of rdar://12984531 llvm-svn: 173825
* libclang: refactor CXStringPool: make it a classDmitri Gribenko2013-01-265-43/+48
| | | | | | | We are not exposing the pool or string buffers to libclang users, so no need to maintain a procedural interface. llvm-svn: 173595
* libclang: type safety for CXTranslationUnitImpl::CIdxDmitri Gribenko2013-01-264-6/+6
| | | | llvm-svn: 173590
* libclang: type safety for CXTranslationUnitImpl::FormatContextDmitri Gribenko2013-01-263-15/+10
| | | | llvm-svn: 173589
* libclang: some type safety for CXTranslationUnitImpl's internalsDmitri Gribenko2013-01-263-10/+13
| | | | | | | There is no reason to store pointers as 'void*' in CXTranslationUnitImpl, since it does not affect libclang ABI. llvm-svn: 173588
* libclang: factor out the frequent pattern static_cast<ASTUnit *>(TU->TUData)Dmitri Gribenko2013-01-2614-67/+72
| | | | | | into a getter cxtu::getASTUnit(TU) llvm-svn: 173585
* libclang: make getCursorParentDecl() return 'const Decl *'Dmitri Gribenko2013-01-263-4/+4
| | | | llvm-svn: 173584
* libclang: change getCursorAttr() to return 'const Attr *'Dmitri Gribenko2013-01-263-7/+7
| | | | llvm-svn: 173583
* libclang: make getCursorStmt() and getCursorExpr() return const pointersDmitri Gribenko2013-01-264-169/+180
| | | | | | Also change EnqueueVisitor to use ConstStmtVisitor as a consequence. llvm-svn: 173577
* [libclang] Introduce clang_getFileUniqueID which returns a structArgyrios Kyrtzidis2013-01-262-0/+16
| | | | | | | | | | | for a CXFile containing device/inode/modification time. Intended to be useful as a key associated with a unique file across an indexing session. rdar://13091837 llvm-svn: 173559
* scan-build: Add a --keep-empty option for better testing.Jordan Rose2013-01-241-4/+17
| | | | | | | | SATestBuild expects to compare output directories for each invocation of scan-build that it runs, but scan-build clears out empty directories by default. We were coincidentally not getting that behavior until r173294. llvm-svn: 173383
* Always process an index.html file if we have HTML output. Patch by Justin ↵Ted Kremenek2013-01-231-1/+1
| | | | | | Bogner. llvm-svn: 173294
* libclang: change return type of getCursorDecl() to 'const Decl *'Dmitri Gribenko2013-01-238-159/+167
| | | | llvm-svn: 173278
* Remove uneeded castsDmitri Gribenko2013-01-232-6/+4
| | | | llvm-svn: 173269
* Explicitly cast away the const-ness instead of doing it implicitly.Bill Wendling2013-01-232-5/+5
| | | | llvm-svn: 173241
* Explicitly cast away the const-ness instead of doing it implicitly.Bill Wendling2013-01-231-5/+9
| | | | llvm-svn: 173232
* libclang: Update comment about USEDLIBS in c-*-test/Makefile.NAKAMURA Takumi2013-01-222-1/+4
| | | | | | "Note that 'USEDLIBS' must include all of the core clang libraries when -static is given to linker on cygming." llvm-svn: 173124
* Add bitreader to LINK_COMPONENTS in users of libclang, c-arcmt-test and ↵NAKAMURA Takumi2013-01-202-2/+2
| | | | | | | | c-index-test. They don't link cygclang.dll, but libclang.a on cygwin. llvm-svn: 172980
* Implement OpenCL event_t as Clang builtin type, including event_t related ↵Guy Benyei2013-01-202-0/+2
| | | | | | OpenCL restrictions (OpenCL 1.2 spec 6.9) llvm-svn: 172973
* update to use the new BitcodeCursor readRecord that takes a StringRef blob ↵Chris Lattner2013-01-201-38/+26
| | | | | | | | parameter, and adopt "advance" in more places. llvm-svn: 172951
* Nuke SetUpBuildDumpLog.Sean Silva2013-01-204-8/+3
| | | | | | | Also, it was the only reason that `argc` and `argv` were being passed into createDiagnostics, so remove those parameters and clean up callers. llvm-svn: 172945
* random tidyingChris Lattner2013-01-191-6/+3
| | | | llvm-svn: 172920
* update header comment.Chris Lattner2013-01-191-12/+12
| | | | llvm-svn: 172909
* these now depend on the bitcode reader too.Chris Lattner2013-01-196-3/+6
| | | | llvm-svn: 172906
* this depends on the bitcode reader, since it is using it.Chris Lattner2013-01-192-1/+2
| | | | llvm-svn: 172905
* Re-sort all the headers. Lots of regressions have crept in here.Chandler Carruth2013-01-196-7/+8
| | | | | | | | | | Manually fix the order of UnwrappedLineParser.cpp as that one didn't have its associated header as the first header. This also uncovered a subtle inclusion order dependency as CLog.h didn't include LLVM.h to pick up using declarations it relied upon. llvm-svn: 172892
* clang-check: Introduce llvm::sys::PrintStackTraceOnErrorSignal()NAKAMURA Takumi2013-01-181-0/+2
| | | | llvm-svn: 172818
* We want the dwarf AT_producer for assembly source files to match clang'sKevin Enderby2013-01-171-0/+4
| | | | | | | | | | | | | | | | AT_producer. Which includes clang's version information so we can tell which version of the compiler was used. This is second of the two steps to allow us to do this. The first was a change to llvm-mc with revision 172630 to provide a method to set the AT_producer string. This second step has the clang driver passing the value of getClangFullVersion() via the new flag -dwarf-debug-producer when invoking the integrated assembler on assembly source files. Then using the new setDwarfDebugProducer() method to set the AT_producer string. rdar://12888242 llvm-svn: 172758
* [libclang] In clang_reparseTranslationUnit_Impl, move the check whether TU isArgyrios Kyrtzidis2013-01-161-3/+2
| | | | | | null before using it. llvm-svn: 172632
* [libclang] In clang_getCursorType, don't crash if the translation unit is notArgyrios Kyrtzidis2013-01-161-0/+3
| | | | | | set on the cursor; return a null type in such a case. llvm-svn: 172625
* Fix CastingDavid Greene2013-01-151-6/+11
| | | | | | Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172565
* Fix CastingDavid Greene2013-01-151-2/+2
| | | | | | Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172564
* Fix CastingDavid Greene2013-01-151-1/+1
| | | | | | Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172563
* Fix CastingDavid Greene2013-01-151-1/+2
| | | | | | Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172562
* [driver] Warnings for warning options are handled by the frontend. The ↵Chad Rosier2013-01-151-1/+1
| | | | | | | | | | driver needs to process the warning options to setup diagnostic state, but should not be emitting warnings as these would be rudndant with what the frontend emits. rdar://13001556 llvm-svn: 172497
* libclang: remove a few const_castsDmitri Gribenko2013-01-144-9/+8
| | | | llvm-svn: 172373
* Constify argument of Preprocessor::getMacroInfoHistory and propagate toDmitri Gribenko2013-01-142-2/+2
| | | | | | callers, removing unneeded const_cast llvm-svn: 172372
* Remove useless 'llvm::' qualifier from names like StringRef and others that areDmitri Gribenko2013-01-126-9/+9
| | | | | | brought into 'clang' namespace by clang/Basic/LLVM.h llvm-svn: 172323
OpenPOWER on IntegriCloud