summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc
Commit message (Collapse)AuthorAgeFilesLines
...
* CreatePreprocessor cannot failDaniel Dunbar2009-11-051-2/+0
| | | | llvm-svn: 86103
* Kill PreprocessorFactory, which was both morally repugnant and totally unused.Daniel Dunbar2009-11-041-62/+42
| | | | llvm-svn: 86076
* Turn if chain into switch.Daniel Dunbar2009-11-041-3/+15
| | | | llvm-svn: 86071
* InitializePreprocessor cannot fail.Daniel Dunbar2009-11-041-2/+1
| | | | llvm-svn: 86048
* Move -undef flag into PreprocessorInitOptionsDaniel Dunbar2009-11-041-6/+6
| | | | llvm-svn: 86047
* Move -fcolor-diagnostics logic to driver.Daniel Dunbar2009-11-041-7/+4
| | | | llvm-svn: 86014
* Move logic for selection -fmessage-length= to driver.Daniel Dunbar2009-11-041-6/+0
| | | | llvm-svn: 86013
* Factor out a diagnostic options class.Daniel Dunbar2009-11-041-28/+22
| | | | llvm-svn: 86010
* Merge constant array and structures. This will create a global variables for ↵Tanya Lattner2009-11-041-0/+6
| | | | | | arrays and structs that are constant and their initializer is constant. It is on by default but can be disable with the flag -fno-merge-all-constants. llvm-svn: 85991
* Implement support for the -undef command line option, patch byChris Lattner2009-11-031-1/+4
| | | | | | Roman Divacky! PR5363 llvm-svn: 85932
* Remove clang-cc code for handling -mmacosx-version-min andDaniel Dunbar2009-10-301-118/+10
| | | | | | -miphoneos-version-min. llvm-svn: 85601
* Move some clang-cc errors to use diagnostics, and simplify.Daniel Dunbar2009-10-291-26/+15
| | | | llvm-svn: 85527
* Reject -I- in driver instead of clang-cc.Daniel Dunbar2009-10-291-9/+0
| | | | llvm-svn: 85469
* Formatting fixes.Daniel Dunbar2009-10-291-12/+12
| | | | llvm-svn: 85468
* clang-cc: Allow building for x86_64 with -mmacosx-version-min=10.4.Daniel Dunbar2009-10-261-9/+0
| | | | llvm-svn: 85132
* Rename -nostdclanginc to -nobuiltininc.Rafael Espindola2009-10-261-3/+3
| | | | llvm-svn: 85116
* Move Diagnostic/DiagClient/FileManager from Indexer => ASTUnit.Steve Naroff2009-10-191-2/+1
| | | | | | Removing this shared data should enable clang_createTranslationUnit/clang_createTranslationUnitFromSourceFile to be run from multiple threads (related to <rdar://problem/7303432>). llvm-svn: 84499
* Simplify (move guard to caller instead of callee).Daniel Dunbar2009-10-171-4/+2
| | | | llvm-svn: 84325
* Set up include paths for VC++ and Cygwin headers, along with theMike Stump2009-10-081-3/+4
| | | | | | | existing MinGW headers, plus the newer 4.4.0 version. Patch by John Thompson. llvm-svn: 83594
* Add a -nostdclanginc flag to clang-cc that prevents it from searchingRafael Espindola2009-10-051-19/+31
| | | | | | | its own binary-relative headers. Useful when using clang's preprocessor with gcc. llvm-svn: 83302
* Set GNUMode only for the "gnu" language standard options, from Ken Dyck!Douglas Gregor2009-09-291-3/+17
| | | | llvm-svn: 83064
* Add a -dump-record-layouts argument to clang-cc.Anders Carlsson2009-09-241-0/+6
| | | | llvm-svn: 82703
* Replace the -code-completion-dump option with Douglas Gregor2009-09-221-15/+20
| | | | | | | | | | | -code-completion-at=filename:line:column which performs code completion at the specified location by truncating the file at that position and enabling code completion. This approach makes it possible to run multiple tests from a single test file, and gives a more natural command-line interface. llvm-svn: 82571
* This FIXME is done.Daniel Dunbar2009-09-221-2/+0
| | | | llvm-svn: 82509
* Removed -fobjc-newgc-api option. clang now conforms toFariborz Jahanian2009-09-211-7/+0
| | | | | | gcc-style write-barrier api only. llvm-svn: 82493
* Switch ProcessASTInputFile to still use ParseAST.Daniel Dunbar2009-09-211-7/+10
| | | | | | | | - Currently this requires us to fake an input file. - This allows Sema to be keep all the logic for how to pull decls out of the external AST source and how to handle things like tentative definitions. llvm-svn: 82432
* Change ASTUnit to take the Diagnostic as an argument, the client should have ↵Daniel Dunbar2009-09-211-1/+1
| | | | | | control of this. llvm-svn: 82430
* switch command line 'parse' methods to use StringRef for efficiency, whichChris Lattner2009-09-201-2/+2
| | | | | | is also required for an llvm-side change. llvm-svn: 82344
* Initial implementation of a code-completion interface in Clang. InDouglas Gregor2009-09-171-4/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | essence, code completion is triggered by a magic "code completion" token produced by the lexer [*], which the parser recognizes at certain points in the grammar. The parser then calls into the Action object with the appropriate CodeCompletionXXX action. Sema implements the CodeCompletionXXX callbacks by performing minimal translation, then forwarding them to a CodeCompletionConsumer subclass, which uses the results of semantic analysis to provide code-completion results. At present, only a single, "printing" code completion consumer is available, for regression testing and debugging. However, the design is meant to permit other code-completion consumers. This initial commit contains two code-completion actions: one for member access, e.g., "x." or "p->", and one for nested-name-specifiers, e.g., "std::". More code-completion actions will follow, along with improved gathering of code-completion results for the various contexts. [*] In the current -code-completion-dump testing/debugging mode, the file is truncated at the completion point and EOF is translated into "code completion". llvm-svn: 82166
* Initial support for code generation from .ast files.Daniel Dunbar2009-09-171-3/+76
| | | | | | | | - Doesn't actually work yet because only module level asm's get correctly marked as externally visible in the PCH. - Other things like 'clang-cc foo.ast -ast-dump' now work, as well. llvm-svn: 82107
* clang-cc: Factor out code for creating one of the standard AST consumer actions.Daniel Dunbar2009-09-171-56/+64
| | | | llvm-svn: 82106
* Simplify.Daniel Dunbar2009-09-171-9/+2
| | | | llvm-svn: 82104
* clang-cc: Remove -ObjC -ObjC++ handling from clang-cc.Daniel Dunbar2009-09-171-23/+1
| | | | llvm-svn: 82103
* Starting patch to generate more specific API for objc'sFariborz Jahanian2009-09-161-0/+7
| | | | | | | | GC. Currently, new API will be generated under clang-cc's -fobjc-newgc-api flag which will eventually become the default. WIP. llvm-svn: 82082
* Be sure to use the correct version instead of the wrong one.Mike Stump2009-09-151-1/+2
| | | | llvm-svn: 81925
* Add -target-abi clang-cc option, currently unused.Daniel Dunbar2009-09-141-0/+13
| | | | llvm-svn: 81731
* rewrite the parsing code for -miphoneos-version-min andChris Lattner2009-09-121-78/+59
| | | | | | | -mmacosx-version-min to work on llvm::Triple. Simplify it to use x-'0' to parse single digit integer strings. llvm-svn: 81646
* Non fragile ABI for GNU runtime. Patch bu David Chisnall.Fariborz Jahanian2009-09-101-8/+0
| | | | llvm-svn: 81462
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-154/+154
| | | | llvm-svn: 81346
* Use llvm::sys::getHostTriple, not LLVM_HOSTTRIPLE.Daniel Dunbar2009-09-041-2/+2
| | | | llvm-svn: 81013
* Add basic support for -pthread.Daniel Dunbar2009-09-031-0/+7
| | | | | | - Patch by David Chisnall, with PCH and Darwin support mixed in. llvm-svn: 80883
* Tweak comment.Daniel Dunbar2009-09-031-1/+1
| | | | llvm-svn: 80882
* Initialize targets before parsing command line options, so --version shows ↵Daniel Dunbar2009-09-021-3/+5
| | | | | | registered targets. llvm-svn: 80849
* Updated GNU runtime non-fragile ABI.David Chisnall2009-08-311-0/+9
| | | | | | | Added -fconstant-string-class= option. Added __has_feature() test for non-fragile ABI. llvm-svn: 80591
* Since the HexFloats option only controls a warning, it shouldn't depend Eli Friedman2009-08-261-1/+1
| | | | | | on whether we're in GNUMode. Adjust the code appropriately. llvm-svn: 80132
* Update clang for raw_fd_ostream no longer requiring F_Force.Dan Gohman2009-08-251-6/+3
| | | | llvm-svn: 79991
* prune #includes.Chris Lattner2009-08-241-0/+1
| | | | llvm-svn: 79889
* API changes to match llvm ToT.Chris Lattner2009-08-231-1/+1
| | | | llvm-svn: 79868
* CMake: Improve installation of ClangDouglas Gregor2009-08-231-0/+3
| | | | | | | | - Install clang-cc into libexec - Install headers into lib/clang/<version>/include - Don't install other clang-based tools (clang-wpa, clang-index, etc.) llvm-svn: 79827
* adjust for raw_fd_ostream api change.Chris Lattner2009-08-231-30/+26
| | | | llvm-svn: 79809
OpenPOWER on IntegriCloud