Skip to content
  1. Aug 11, 2008
    • Daniel Dunbar's avatar
      More #include cleaning · 56fdb6ae
      Daniel Dunbar authored
       - Kill unnecessary #includes in .cpp files. This is an automatic
         sweep so some things removed are actually used, but happen to be
         included by a previous header. I tried to get rid of the obvious
         examples and this was the easiest way to trim the #includes in one
         fell swoop.
       - We now return to regularly scheduled development.
      
      llvm-svn: 54632
      56fdb6ae
  2. Aug 06, 2008
  3. Dec 29, 2007
  4. Dec 12, 2007
    • Ted Kremenek's avatar
      TargetInfo no longer includes a reference to SourceManager. · 1daa3cfb
      Ted Kremenek authored
      Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation.
      Added many utility methods to FullSourceLoc to provide shorthand for:
      
          FullLoc.getManager().someMethod(FullLoc.getLocation());
          
      instead we have:
      
          FullLoc.someMethod();
          
      Modified TextDiagnostics (and related classes) to use this short-hand.
      
      llvm-svn: 44957
      1daa3cfb
  5. Dec 11, 2007
    • Ted Kremenek's avatar
      Modified the internals of Diagnostic and DiagnosticClient to use · 89fbadd3
      Ted Kremenek authored
      SourceManager*'s instead of SourceManager&'s. This allows the client specify a
      NULL SourceManager when using a default constructed SourceLocation. Thus the
      SourceManager can be NULL when the SourceLocation's isValid() == false.
      
      The interface to most clients of Diagnostic remains the same.
      Diagnostic::Report() is overload to either accept a SourceLocation and a
      SourceManager&, or neither. Thus clients that do not have a SourceManager
      cannot specify a SourceLocation.
      
      Modified TextDiagnostics* to use this new interface.
      Modified the driver to not passed in SourceManager when warning about "-I-".
      
      llvm-svn: 44887
      89fbadd3
    • Ted Kremenek's avatar
      Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. Now · d4e5fbac
      Ted Kremenek authored
      SourceManager is passed by reference, allowing the SourceManager to be
      associated with a specific translation unit, and not the entire execution
      of the driver.
      
      Modified all users of Diagnostics to comply with this new interface.
      
      Integrated SourceManager as a member variable of TargetInfo. TargetInfo will
      eventually be associated with a single translation unit (just like
      SourceManager).
      
      Made the SourceManager reference in ASTContext private. Provided accessor
      getSourceManager() for clients to use instead. Modified clients to comply with
      new interface.
      
      llvm-svn: 44878
      d4e5fbac
  6. Nov 30, 2007
  7. Jun 27, 2007
    • Bill Wendling's avatar
      Submitted by: Bill Wendling · 469211a2
      Bill Wendling authored
      Reviewed by: Chris Lattner
      
      - Added a new diagnostic client, TextDiagnosticBuffer. It buffers all
        reported diagnostics.
      - Use the new diagnostic client to check that expected diagnostics are
        actually emitted. The way this is done is to put the expected
        diagnostic in a comment on the line you expect it to be emitted for.
        Like this:
      
          int X = A; // expected-warning {{blah}}
      
      - Use -parse-ast-check to use this feature.
      
      llvm-svn: 39678
      469211a2
Loading