Skip to content
  1. May 15, 2013
    • David Blaikie's avatar
      Use only explicit bool conversion operators · 041f1aa3
      David Blaikie authored
      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
      041f1aa3
  2. Feb 15, 2013
  3. Jan 11, 2013
  4. Jan 10, 2013
    • Jordan Rose's avatar
      Add basic fix-its to SMDiagnostic. · efd8f80e
      Jordan Rose authored
      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
      efd8f80e
  5. Jan 07, 2013
    • Jordan Rose's avatar
      Change SMRange to be half-open (exclusive end) instead of closed (inclusive) · e8f1eaea
      Jordan Rose authored
      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
      e8f1eaea
  6. Dec 03, 2012
    • Chandler Carruth's avatar
      Use the new script to sort the includes of every file under lib. · ed0881b2
      Chandler Carruth authored
      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
      ed0881b2
  7. Jul 20, 2012
  8. May 07, 2012
  9. May 06, 2012
  10. May 05, 2012
  11. Apr 18, 2012
  12. Jan 17, 2012
    • David Blaikie's avatar
      Removing unused default switch cases in switches over enums that already... · 486df738
      David Blaikie authored
      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
      486df738
  13. Oct 16, 2011
  14. Jun 01, 2011
  15. Dec 16, 2010
  16. Dec 09, 2010
  17. Nov 17, 2010
  18. Sep 27, 2010
  19. Apr 06, 2010
  20. Jan 27, 2010
  21. Jan 21, 2010
  22. Nov 22, 2009
  23. Aug 11, 2009
  24. Jul 03, 2009
  25. Jun 30, 2009
    • Daniel Dunbar's avatar
      Normalize SourceMgr messages. · c9dc78ae
      Daniel Dunbar authored
       - Don't print "Parsing" in front of every message.
      
       - Take additional "type" argument which is prepended to the message (with ": ")
         if given.
      
       - Update clients to print errors (warnings) as:
      <filename>:<line number>: error(warning): ...
      
      llvm-svn: 74489
      c9dc78ae
  26. Jun 21, 2009
  27. Mar 26, 2009
Loading