Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Only emit one set of braces for __VERSION__, getClangFullRepositoryVersion ↵ | Benjamin Kramer | 2012-05-26 | 1 | -2/+1 |
| | | | | | | | | already adds some. No test as the output is highly dependend on the local configuration. llvm-svn: 157520 | ||||
* | More git-svn compatible version string, by request. | Andrew Trick | 2012-03-07 | 1 | -11/+18 |
| | | | | | | | | | | | | | | | | | If you're using git-svn, the clang and llvm repository will typically map to a different revision. Before we had: clang version 3.1 (trunk 152167 trunk 152162) After this change: clang version 3.1 (trunk 152167) (llvm/trunk 152162) So it's self-descriptive with an extra parens group. Which is more compatible with version string parsers is probably debatable, but this style was requested. llvm-svn: 152183 | ||||
* | clang -v support for separate clang.git and llvm.git, patch by Andrew Trick. | Jia Liu | 2012-03-02 | 1 | -2/+33 |
| | | | | llvm-svn: 151910 | ||||
* | Partially revert r147195; lib/Basic/Version.cpp conditionally depends on ↵ | Eli Friedman | 2011-12-26 | 1 | -0/+1 |
| | | | | | | config.h. llvm-svn: 147282 | ||||
* | remove unneeded config.h includes | Dylan Noblesmith | 2011-12-22 | 1 | -1/+0 |
| | | | | llvm-svn: 147195 | ||||
* | remove unneeded llvm:: namespace qualifiers on some core types now that ↵ | Chris Lattner | 2011-07-23 | 1 | -4/+5 |
| | | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852 | ||||
* | Like the coding standards say, do not use "using namespace std". | Jay Foad | 2011-04-23 | 1 | -2/+0 |
| | | | | llvm-svn: 130054 | ||||
* | Change Clang's __VERSION__ to include the same basic info as in clang -v. | Daniel Dunbar | 2011-03-31 | 1 | -0/+13 |
| | | | | | | - Please never ever ever ever write a tool that sniffs this. llvm-svn: 128599 | ||||
* | Basic: Add support for a build variable to set the repository path that goes | Daniel Dunbar | 2011-03-31 | 1 | -0/+4 |
| | | | | | | into the Clang version. llvm-svn: 128595 | ||||
* | Basic: Tweak attempt to make version tags work from 'svn export's again, clip | Daniel Dunbar | 2010-10-11 | 1 | -2/+4 |
| | | | | | | off the extra parts of the $URL$ SVN keyword. llvm-svn: 116269 | ||||
* | Basic: Attempt to make version tags work from 'svn export's again. | Daniel Dunbar | 2010-10-11 | 1 | -0/+6 |
| | | | | llvm-svn: 116268 | ||||
* | Driver: When clang is built with a VENDOR set, include the base LLVM version in | Daniel Dunbar | 2010-10-07 | 1 | -0/+7 |
| | | | | | | | the version information, to help prevent user confusion about vendor version numbers vs. LLVM version numbers. llvm-svn: 115915 | ||||
* | Basic: Simplify getClangRepositoryPath and getClangRevision. | Daniel Dunbar | 2010-09-29 | 1 | -25/+18 |
| | | | | | | | | | | - I don't like returning StringRef's ever, unless it is actually important for performance, which it isn't here. - Also, stop validating getClangRevision to be an integer, I don't see a good reason to do this. llvm-svn: 115071 | ||||
* | Basic: Add support for git svn to get the repo version in clang executable, | Daniel Dunbar | 2010-09-29 | 1 | -19/+25 |
| | | | | | | patch by Jonathan Mulder! llvm-svn: 115049 | ||||
* | Basic: Update getClangRepositoryPath for my change to integration branch layout. | Daniel Dunbar | 2010-05-06 | 1 | -1/+2 |
| | | | | llvm-svn: 103192 | ||||
* | Make sure the raw_string_ostream gets flushed so we don't accidentally ↵ | Benjamin Kramer | 2010-03-05 | 1 | -3/+3 |
| | | | | | | return an empty string. llvm-svn: 97809 | ||||
* | Use SVN_REVISION, not SVN_VERSION. | Ted Kremenek | 2010-03-03 | 1 | -1/+1 |
| | | | | llvm-svn: 97625 | ||||
* | Make getClangRevision() check that SVN_VERSION is an empty string | Ted Kremenek | 2010-03-03 | 1 | -8/+8 |
| | | | | | | | | (even if it is defined). This fixes the issue of this function returning '0' when SVN_VERSION is defined to be "". Fixes: <rdar://problem/7663667> llvm-svn: 97620 | ||||
* | Fix bug I introduced with assinging a temporary to a StringRef. | Ted Kremenek | 2010-02-12 | 1 | -1/+1 |
| | | | | llvm-svn: 96041 | ||||
* | Make the following functions thread-safe but having them return an ↵ | Ted Kremenek | 2010-02-12 | 1 | -27/+20 |
| | | | | | | | | | | | | std::string that is reconstructed every time they are called: getClangRevision() getClangFullRepositoryVersion() getClangFullVersion() llvm-svn: 96033 | ||||
* | We don't need to place 0 in the URL string now that we return a StringRef. | Benjamin Kramer | 2010-01-30 | 1 | -18/+13 |
| | | | | | | | - URL can go into read only memory now. - Compilers will fold away all the strstr calls. llvm-svn: 94887 | ||||
* | Rename getClangFullVendorVersion() to getClangFullVersion(). | Ted Kremenek | 2010-01-23 | 1 | -1/+1 |
| | | | | llvm-svn: 94273 | ||||
* | Add 'clang_getClangVersion()' function to CIndex. This exposes the full ↵ | Ted Kremenek | 2010-01-22 | 1 | -2/+2 |
| | | | | | | Clang version string through the CIndex API. llvm-svn: 94242 | ||||
* | Move version string generation (e.g., "clang 1.1 ...") to ↵ | Ted Kremenek | 2010-01-22 | 1 | -6/+19 |
| | | | | | | libBasic/Version.cpp, getClangFullVendorVersion(). llvm-svn: 94235 | ||||
* | (1) Rename getClangSubversionRevision() to getClangRevision(), and | Ted Kremenek | 2010-01-22 | 1 | -3/+21 |
| | | | | | | | | | | | | | | | | | have it return a StringRef instead of an integer (to be more VCS agnostic). (2) Add getClangFullRepositoryVersion(), which contains an amalgamation of the repository name and the revision. (3) Change PCH to only emit the string returned by getClangFullRepositoryVersion() instead of also emitting the value of getClangSubversionRevision() (which has been removed). This is functionally equivalent. More cleanup to version string generation pending... llvm-svn: 94231 | ||||
* | Rename getClangSubversionPath() -> getClangRepositoryPath() and have it ↵ | Ted Kremenek | 2010-01-22 | 1 | -1/+4 |
| | | | | | | return a StringRef. llvm-svn: 94213 | ||||
* | Strip off the /clang/tools/clang at the end of the Subversion URL, if it's there | Douglas Gregor | 2009-11-05 | 1 | -0/+4 |
| | | | | llvm-svn: 86195 | ||||
* | Provide a common set of routines in Version.h that return Subversion | Douglas Gregor | 2009-10-05 | 1 | -16/+2 |
| | | | | | | | branch/revision information. Use that information in the driver, rather than one-off branch/revision computation. llvm-svn: 83321 | ||||
* | Pre-commit commit to get URL keyword expansion for Clang version information | Douglas Gregor | 2009-10-05 | 1 | -0/+63 |
llvm-svn: 83319 |