summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Version.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make sure the raw_string_ostream gets flushed so we don't accidentally ↵Benjamin Kramer2010-03-051-3/+3
| | | | | | return an empty string. llvm-svn: 97809
* Use SVN_REVISION, not SVN_VERSION.Ted Kremenek2010-03-031-1/+1
| | | | llvm-svn: 97625
* Make getClangRevision() check that SVN_VERSION is an empty string Ted Kremenek2010-03-031-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 Kremenek2010-02-121-1/+1
| | | | llvm-svn: 96041
* Make the following functions thread-safe but having them return an ↵Ted Kremenek2010-02-121-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 Kramer2010-01-301-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 Kremenek2010-01-231-1/+1
| | | | llvm-svn: 94273
* Add 'clang_getClangVersion()' function to CIndex. This exposes the full ↵Ted Kremenek2010-01-221-2/+2
| | | | | | Clang version string through the CIndex API. llvm-svn: 94242
* Move version string generation (e.g., "clang 1.1 ...") to ↵Ted Kremenek2010-01-221-6/+19
| | | | | | libBasic/Version.cpp, getClangFullVendorVersion(). llvm-svn: 94235
* (1) Rename getClangSubversionRevision() to getClangRevision(), andTed Kremenek2010-01-221-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 Kremenek2010-01-221-1/+4
| | | | | | return a StringRef. llvm-svn: 94213
* Strip off the /clang/tools/clang at the end of the Subversion URL, if it's thereDouglas Gregor2009-11-051-0/+4
| | | | llvm-svn: 86195
* Provide a common set of routines in Version.h that return SubversionDouglas Gregor2009-10-051-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 informationDouglas Gregor2009-10-051-0/+63
llvm-svn: 83319
OpenPOWER on IntegriCloud