#
8f944628 |
| 27-Sep-2013 |
Dmitri Gribenko <gribozavr@gmail.com> |
Make SourceMgr::PrintMessage() testable and add unit tests
llvm-svn: 191558
|
#
fe8ff5cc |
| 20-Jul-2013 |
Matt Arsenault <Matthew.Arsenault@amd.com> |
Fix size_t -> uint warnings with MSVC 64-bit build
llvm-svn: 186736
|
Revision tags: llvmorg-3.3.1-rc1, llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2 |
|
#
041f1aa3 |
| 15-May-2013 |
David Blaikie <dblaikie@gmail.com> |
Use only explicit bool conversion operators
BitVector/SmallBitVector::reference::operator bool remain implicit since they model more exactly a bool, rather than something else that can be boolean te
Use only explicit bool conversion operators
BitVector/SmallBitVector::reference::operator bool remain implicit since they model more exactly a bool, rather than something else that can be boolean tested.
The most common (non-buggy) case are where such objects are used as return expressions in bool-returning functions or as boolean function arguments. In those cases I've used (& added if necessary) a named function to provide the equivalent (or sometimes negative, depending on convenient wording) test.
One behavior change (YAMLParser) was made, though no test case is included as I'm not sure how to reach that code path. Essentially any comparison of llvm::yaml::document_iterators would be invalid if neither iterator was at the end.
This helped uncover a couple of bugs in Clang - test cases provided for those in a separate commit along with similar changes to `operator bool` instances in Clang.
llvm-svn: 181868
show more ...
|
Revision tags: llvmorg-3.3.0-rc1 |
|
#
6ecb1e78 |
| 15-Feb-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage.
llvm-svn: 175264
|
#
ceb1dbb4 |
| 11-Jan-2013 |
Jordan Rose <jordan_rose@apple.com> |
SMDiagnostic: don't emit ranges if there are /any/ multibyte characters.
Right now, only OS X has a way to determine the column width of a string (PR14910). Until we have a good way to deal with thi
SMDiagnostic: don't emit ranges if there are /any/ multibyte characters.
Right now, only OS X has a way to determine the column width of a string (PR14910). Until we have a good way to deal with this, we just won't print carets, source ranges, or fixits for SMDiagnostic if the source line has multibyte characters in it.
llvm-svn: 172164
show more ...
|
#
efd8f80e |
| 10-Jan-2013 |
Jordan Rose <jordan_rose@apple.com> |
Add basic fix-its to SMDiagnostic.
Like Clang's FixItHint, SMFixIt represents an insertion, replacement, or removal of source text. One or more fix-its can be emitted as part of a diagnostic, and wi
Add basic fix-its to SMDiagnostic.
Like Clang's FixItHint, SMFixIt represents an insertion, replacement, or removal of source text. One or more fix-its can be emitted as part of a diagnostic, and will be printed below the source range line to show the user how they can fix their code.
Currently, the only client of SMFixIt is clang-tblgen; thus, the tests for this behavior live in clang/test/TableGen/tg-fixits.td. If/when SMFixIt is adopted within LLVM itself, those tests should be moved to the LLVM suite.
llvm-svn: 172086
show more ...
|
#
e8f1eaea |
| 07-Jan-2013 |
Jordan Rose <jordan_rose@apple.com> |
Change SMRange to be half-open (exclusive end) instead of closed (inclusive)
This is necessary not only for representing empty ranges, but for handling multibyte characters in the input. (If the end
Change SMRange to be half-open (exclusive end) instead of closed (inclusive)
This is necessary not only for representing empty ranges, but for handling multibyte characters in the input. (If the end pointer in a range refers to a multibyte character, should it point to the beginning or the end of the character in a char array?) Some of the code in the asm parsers was already assuming this anyway.
llvm-svn: 171765
show more ...
|
Revision tags: llvmorg-3.2.0, llvmorg-3.2.0-rc3 |
|
#
ed0881b2 |
| 03-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Use the new script to sort the includes of every file under lib.
Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module
Use the new script to sort the includes of every file under lib.
Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented.
Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =]
llvm-svn: 169131
show more ...
|
Revision tags: llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1 |
|
#
c8b8c49d |
| 20-Jul-2012 |
Daniel Dunbar <daniel@zuster.org> |
SourceMgr: Use has_colors() instead of just is_displayed() before trying to use color.
llvm-svn: 160559
|
Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3 |
|
#
a1b3b007 |
| 07-May-2012 |
Matt Beaumont-Gay <matthewbg@google.com> |
Don't assume size_t is unsigned long long.
Fixes a -Woverflow warning from gcc when building for 32-bit platforms.
llvm-svn: 156313
|
#
854f366a |
| 06-May-2012 |
Chris Lattner <sabre@nondot.org> |
make SourceMgr tolerate empty SMLoc()'s better.
llvm-svn: 156260
|
#
9322ba82 |
| 05-May-2012 |
Chris Lattner <sabre@nondot.org> |
reapply my patch, with a fix for an off-by-one error. Turned out to be a lot of work for a drive-by fix :)
llvm-svn: 156246
|
#
64f65d33 |
| 05-May-2012 |
Chris Lattner <sabre@nondot.org> |
revert my patches, which are causing problems.
llvm-svn: 156245
|
#
cd60bc49 |
| 05-May-2012 |
Chris Lattner <sabre@nondot.org> |
refactor some code to expose column numbers more and make diagnostic printing slightly more efficient.
llvm-svn: 156243
|
Revision tags: llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1 |
|
#
bb73d197 |
| 18-Apr-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
SourceMgr: Colorize diagnostics.
Same color scheme as clang uses. The colors are only enabled if the output is a tty.
llvm-svn: 155035
|
#
486df738 |
| 16-Jan-2012 |
David Blaikie <dblaikie@gmail.com> |
Removing unused default switch cases in switches over enums that already account for all enumeration values explicitly.
(This time I believe I've checked all the -Wreturn-type warnings from GCC & ad
Removing unused default switch cases in switches over enums that already account for all enumeration values explicitly.
(This time I believe I've checked all the -Wreturn-type warnings from GCC & added the couple of llvm_unreachables necessary to silence them. If I've missed any, I'll happily fix them as soon as I know about them)
llvm-svn: 148262
show more ...
|
Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1 |
|
#
7284526a |
| 16-Oct-2011 |
Chris Lattner <sabre@nondot.org> |
remove the dead 'ShowLine' argument from SMDiagnostic.
llvm-svn: 142108
|
#
03b80a40 |
| 16-Oct-2011 |
Chris Lattner <sabre@nondot.org> |
Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a string, pass it around as an enum.
llvm-svn: 142107
|
#
a3a06810 |
| 16-Oct-2011 |
Chris Lattner <sabre@nondot.org> |
Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang does. Enhance the X86 asmparser to produce ranges in the one case that was annoying me, for example:
test.s:10:15: error: in
Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang does. Enhance the X86 asmparser to produce ranges in the one case that was annoying me, for example:
test.s:10:15: error: invalid operand for instruction movl 0(%rax), 0(%edx) ^~~~~~~
It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use ranges where appropriate if someone is interested.
llvm-svn: 142106
show more ...
|
#
af5f23ee |
| 01-Jun-2011 |
Joerg Sonnenberger <joerg@bec.de> |
Add new -d option to tblgen. It writes a make(1)-style dependency file.
llvm-svn: 132395
|
Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1 |
|
#
39a0ffc3 |
| 16-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.
llvm-svn: 121958
|
#
db97c0b5 |
| 09-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Fix whitespace.
llvm-svn: 121382
|
#
7b6fef82 |
| 09-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.
llvm-svn: 121379
|
#
b0e36085 |
| 17-Nov-2010 |
Chris Lattner <sabre@nondot.org> |
now that AsmPrinter::EmitInlineAsm is factored right, we can eliminate the cookie argument to the SourceMgr diagnostic stuff. This cleanly separates LLVMContext's inlineasm handler from the sourcemg
now that AsmPrinter::EmitInlineAsm is factored right, we can eliminate the cookie argument to the SourceMgr diagnostic stuff. This cleanly separates LLVMContext's inlineasm handler from the sourcemgr error handling definition, increasing type safety and cleaning things up.
llvm-svn: 119486
show more ...
|
Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3 |
|
#
c7583110 |
| 27-Sep-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Push twines deeper into SourceMgr's error handling methods.
llvm-svn: 114847
|