Skip to content
  1. Jan 21, 2012
  2. Jan 20, 2012
  3. Jan 19, 2012
  4. Jan 18, 2012
    • Richard Trieu's avatar
      Change the error when a '+=' follows a declaration to suggest a fixit to '='... · c64d3230
      Richard Trieu authored
      Change the error when a '+=' follows a declaration to suggest a fixit to '=' instead of just suggesting a ';'.
      
      Old error:
      plusequaldeclare1.cc:3:8: error: expected ';' at end of declaration
        int x += 6;
             ^
             ;
      
      New error:
      plusequaldeclare1.cc:3:9: error: invalid '+=' at end of declaration; did you
            mean '='?
        int x += 6;
              ^~
              =
      
      llvm-svn: 148433
      c64d3230
    • Kaelyn Uhrain's avatar
      Convert SemaDecl.cpp to pass callback objects to CorrectTypo. · b1378408
      Kaelyn Uhrain authored
      Includes tests highlighting the cases where accuracy has improved
      (there is one call that does no filtering beyond selecting the set
      of allowed keywords, and one call that only triggers for ObjC code
      for which a test by someone who knows ObjC would be welcome). Also
      fixes a small typo in one of the suggestion messages, and drops a
      malformed "expected-note" for a suggestion that did not occur even
      when the malformed note was committed as r145930.
      
      llvm-svn: 148420
      b1378408
    • Douglas Gregor's avatar
      Optimize unqualified/global name lookup in modules by introducing a · 4fc9f3e8
      Douglas Gregor authored
      generational scheme for identifiers that avoids searching the hash
      tables of a given module more than once for a given
      identifier. Previously, loading any new module invalidated all of the
      previous lookup results for all identifiers, causing us to perform the
      lookups repeatedly.
      
      llvm-svn: 148412
      4fc9f3e8
    • Anna Zaks's avatar
      Refactor: Pull getImmediateMacroName() out of DiagnosticRenderer and · 1bea4bf5
      Anna Zaks authored
      into Lexer and Preprocessor; making it widely available.
      
      llvm-svn: 148410
      1bea4bf5
Loading