Stefanus Du Toit
b331850194
Fix typos: [Dd]iagnosic -> [Dd]iagnostic
...
These all appear in comments or (ironically) diagnostics output.
llvm-svn: 176383
2013-03-01 21:41:22 +00:00
Dmitri Gribenko
7d09808818
libclang: don't store nul-terminated strings as StringRefs,
...
if the nul-terminatedness property is important for clients.
Also, don't return the same CXString multiple times. This did not create a
correctness issue in practice because the CXString was of an CXS_Unmanaged
kind, and destruction was a no-op.
llvm-svn: 175455
2013-02-18 19:50:38 +00:00
Dmitri Gribenko
7489521eec
libclang: remove 'using namespace cxstring'
...
llvm-svn: 174285
2013-02-03 13:52:47 +00:00
Dmitri Gribenko
2f23e9c520
libclang: introduce cxstring::{createRef,createDup} for StringRefs
...
Also migrate all clients from the old API.
llvm-svn: 174263
2013-02-02 02:19:29 +00:00
Dmitri Gribenko
36a6dd04ef
libclang: itroduce cxstring::createEmpty()
...
llvm-svn: 174174
2013-02-01 14:21:22 +00:00
Chris Lattner
0e6c940d2c
update to use the new BitcodeCursor readRecord that takes a StringRef blob parameter,
...
and adopt "advance" in more places.
llvm-svn: 172951
2013-01-20 02:38:54 +00:00
Chris Lattner
c79fcfaf8e
random tidying
...
llvm-svn: 172920
2013-01-19 21:35:35 +00:00
Chris Lattner
5b25f0b7a9
update header comment.
...
llvm-svn: 172909
2013-01-19 18:47:35 +00:00
David Greene
4320e5e114
Fix Casting
...
Use const_cast<> to avoid a cast-away-const error.
llvm-svn: 172563
2013-01-15 22:09:48 +00:00
Ted Kremenek
26a6d498ee
Implement clang_getDiagnosticCategoryText() to provide a way for a client of libclang to accurately
...
get the diagnostic category name from a serialized diagnostic when the version of libclang used
to read the diagnostic file is newer than the clang that emitted the diagnostic file.
llvm-svn: 154567
2012-04-12 00:03:31 +00:00
Dylan Noblesmith
1cd1069b68
drop more llvm:: prefixes on OwningPtr<>
...
More cleanup after r149798.
llvm-svn: 150379
2012-02-13 12:32:21 +00:00
David Blaikie
8a40f700e6
Remove unreachable code in Clang. (replace with llvm_unreachable where appropriate or when GCC requires it)
...
llvm-svn: 148292
2012-01-17 06:56:22 +00:00
Ted Kremenek
9c9e81085f
Tweak serialized diagnostics to support errors with no categories. Fixes <rdar://problem/10538300>.
...
llvm-svn: 146011
2011-12-07 02:08:00 +00:00
Ted Kremenek
6cdff0a82b
Fix serialized diagnostics to handle FixIts that only remove text. Fixes <rdar://problem/10473903>.
...
llvm-svn: 145339
2011-11-29 00:30:52 +00:00
Ted Kremenek
70394cf76c
Tweak CXLoadedDiagnosticSetImpl::makeString() to include an extra null character, and change the creation of the FixIT's string to again just rely on this string (instead of duplicating it when calling createCXString).
...
llvm-svn: 144389
2011-11-11 15:19:48 +00:00
NAKAMURA Takumi
e89c3bd004
libclang/CXLoadedDiagnostic.cpp: Work around not to miss the string terminator on fixit.
...
FixIts might be exposed as C string via clang_getCString(), though the zero terminator is not allocated in CXLoadedDiagnosticSetImpl::makeString.
llvm-svn: 144379
2011-11-11 07:27:33 +00:00
Ted Kremenek
d010ba4729
serialized diagnostics: implement full deserialization of clang diagnostics via the libclang API.
...
I've tested it on simple cases and it works. Test cases to follow as well as a few tweaks.
llvm-svn: 144269
2011-11-10 08:43:12 +00:00