Sylvestre Ledru
096d6e44fd
Remove trailing spaces
...
llvm-svn: 199199
2014-01-14 10:25:26 +00:00
Nico Weber
b00d66e6ac
Shorten the output of `clang-format --version`, include revision number.
...
Before:
$ clang-format --version
LLVM (http://llvm.org/ ):
LLVM version 3.5svn
Optimized build with assertions.
Built Jan 3 2014 (14:28:46).
Default target: x86_64-apple-darwin13.0.0
Host CPU: core-avx-i
Now:
$ bin/clang-format --version
clang-format version 3.5 (198452)
llvm-svn: 198694
2014-01-07 16:27:35 +00:00
Benjamin Kramer
7a7285cc24
Remove "static" on simple temporary StringRef.
...
llvm-svn: 188088
2013-08-09 17:51:03 +00:00
Douglas Gregor
c060b4cfa2
<rdar://problem/13358795> Teach CMake to check Subversion version information at build time, not configure time.
...
llvm-svn: 177939
2013-03-25 23:16:38 +00:00
Chandler Carruth
3a02247dc9
Sort all of Clang's files under 'lib', and fix up the broken headers
...
uncovered.
This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.
I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237
2012-12-04 09:13:33 +00:00
Benjamin Kramer
7b01b578a9
Only emit one set of braces for __VERSION__, getClangFullRepositoryVersion already adds some.
...
No test as the output is highly dependend on the local configuration.
llvm-svn: 157520
2012-05-26 19:39:52 +00:00
Andrew Trick
9179e8a4a3
More git-svn compatible version string, by request.
...
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
2012-03-07 00:44:24 +00:00
Jia Liu
5c302484e9
clang -v support for separate clang.git and llvm.git, patch by Andrew Trick.
...
llvm-svn: 151910
2012-03-02 14:37:41 +00:00
Eli Friedman
2b081c2c9e
Partially revert r147195; lib/Basic/Version.cpp conditionally depends on config.h.
...
llvm-svn: 147282
2011-12-26 22:43:17 +00:00
Dylan Noblesmith
1ced737ebf
remove unneeded config.h includes
...
llvm-svn: 147195
2011-12-22 22:49:47 +00:00
Chris Lattner
0e62c1cc0b
remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports
...
them into the clang namespace.
llvm-svn: 135852
2011-07-23 10:55:15 +00:00
Jay Foad
72e705ed94
Like the coding standards say, do not use "using namespace std".
...
llvm-svn: 130054
2011-04-23 09:06:00 +00:00
Daniel Dunbar
3b17a865bb
Change Clang's __VERSION__ to include the same basic info as in clang -v.
...
- Please never ever ever ever write a tool that sniffs this.
llvm-svn: 128599
2011-03-31 00:53:51 +00:00
Daniel Dunbar
b1798f7b01
Basic: Add support for a build variable to set the repository path that goes
...
into the Clang version.
llvm-svn: 128595
2011-03-31 00:32:50 +00:00
Daniel Dunbar
48ed37d98e
Basic: Tweak attempt to make version tags work from 'svn export's again, clip
...
off the extra parts of the $URL$ SVN keyword.
llvm-svn: 116269
2010-10-11 23:50:34 +00:00
Daniel Dunbar
d097d913b6
Basic: Attempt to make version tags work from 'svn export's again.
...
llvm-svn: 116268
2010-10-11 23:44:19 +00:00
Daniel Dunbar
6036264fb4
Driver: When clang is built with a VENDOR set, include the base LLVM version in
...
the version information, to help prevent user confusion about vendor version
numbers vs. LLVM version numbers.
llvm-svn: 115915
2010-10-07 15:00:30 +00:00
Daniel Dunbar
181ca58074
Basic: Simplify getClangRepositoryPath and getClangRevision.
...
- 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
2010-09-29 19:15:29 +00:00
Daniel Dunbar
b800fdb063
Basic: Add support for git svn to get the repo version in clang executable,
...
patch by Jonathan Mulder!
llvm-svn: 115049
2010-09-29 17:57:10 +00:00
Daniel Dunbar
0b9729887c
Basic: Update getClangRepositoryPath for my change to integration branch layout.
...
llvm-svn: 103192
2010-05-06 18:39:38 +00:00
Benjamin Kramer
d4870700ad
Make sure the raw_string_ostream gets flushed so we don't accidentally return an empty string.
...
llvm-svn: 97809
2010-03-05 15:39:20 +00:00
Ted Kremenek
c9ef64ff67
Use SVN_REVISION, not SVN_VERSION.
...
llvm-svn: 97625
2010-03-03 01:30:39 +00:00
Ted Kremenek
47307292f1
Make getClangRevision() check that SVN_VERSION is an empty string
...
(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
2010-03-03 01:02:48 +00:00
Ted Kremenek
8bd0929d41
Fix bug I introduced with assinging a temporary to a StringRef.
...
llvm-svn: 96041
2010-02-12 23:31:14 +00:00
Ted Kremenek
a3e657064b
Make the following functions thread-safe but having them return an std::string that is reconstructed
...
every time they are called:
getClangRevision()
getClangFullRepositoryVersion()
getClangFullVersion()
llvm-svn: 96033
2010-02-12 22:54:40 +00:00
Benjamin Kramer
a87bdb793e
We don't need to place 0 in the URL string now that we return a StringRef.
...
- URL can go into read only memory now.
- Compilers will fold away all the strstr calls.
llvm-svn: 94887
2010-01-30 14:01:39 +00:00
Ted Kremenek
4c0df3dc1d
Rename getClangFullVendorVersion() to getClangFullVersion().
...
llvm-svn: 94273
2010-01-23 02:11:34 +00:00
Ted Kremenek
c0f3f72fa4
Add 'clang_getClangVersion()' function to CIndex. This exposes the full Clang version string through the CIndex API.
...
llvm-svn: 94242
2010-01-22 22:44:15 +00:00
Ted Kremenek
51b8bc93f8
Move version string generation (e.g., "clang 1.1 ...") to libBasic/Version.cpp, getClangFullVendorVersion().
...
llvm-svn: 94235
2010-01-22 22:29:50 +00:00
Ted Kremenek
18e066f6a9
(1) Rename getClangSubversionRevision() to getClangRevision(), and
...
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
2010-01-22 22:12:47 +00:00
Ted Kremenek
2377a0e0ea
Rename getClangSubversionPath() -> getClangRepositoryPath() and have it return a StringRef.
...
llvm-svn: 94213
2010-01-22 20:55:35 +00:00
Douglas Gregor
4c25ce723f
Strip off the /clang/tools/clang at the end of the Subversion URL, if it's there
...
llvm-svn: 86195
2009-11-05 23:46:05 +00:00
Douglas Gregor
1b7035da6f
Provide a common set of routines in Version.h that return Subversion
...
branch/revision information. Use that information in the driver,
rather than one-off branch/revision computation.
llvm-svn: 83321
2009-10-05 20:33:49 +00:00
Douglas Gregor
7550a6c186
Pre-commit commit to get URL keyword expansion for Clang version information
...
llvm-svn: 83319
2009-10-05 18:52:24 +00:00