Skip to content
  1. Aug 21, 2012
  2. Aug 20, 2012
  3. Aug 19, 2012
  4. Aug 18, 2012
    • Jordan Rose's avatar
      Allow -verify to be used with files that don't have an associated FileEntry. · 8c1ac0c3
      Jordan Rose authored
      In Debug builds, VerifyDiagnosticConsumer checks any files with diagnostics
      to make sure we got the chance to parse them for directives (expected-warning
      and friends). This check previously relied on every parsed file having a
      FileEntry, which broke the cling interpreter's test suite.
      
      This commit changes the extra debug checking to mark a file as unparsed
      as soon as we see a diagnostic from that file. At the very end, any files
      that are still marked as unparsed are checked for directives, and a fatal
      error is emitted (as before) if we find out that there were directives we
      missed. -verify directives should always live in actual parsed files, not
      in PCH or AST files.
      
      Patch by Andy Gibbs, with slight modifications by me.
      
      llvm-svn: 162171
      8c1ac0c3
    • Benjamin Kramer's avatar
      a95b3ffe
    • John McCall's avatar
      When mangling a negative number, remember that negating it does not · dd61f2eb
      John McCall authored
      always yield a positive number.  Just print the negated result as an
      unsigned number.
      
      llvm-svn: 162163
      dd61f2eb
    • Richard Smith's avatar
      PR41111, PR5925, PR13210: Teach tentative parsing to annotate identifiers and · 4f605aff
      Richard Smith authored
      nested names as id-expressions, using the annot_primary_expr annotation, where
      possible. This removes some redundant lookups, and also allows us to
      typo-correct within tentative parsing, and to carry on disambiguating past an
      identifier which we can determine will fail lookup as both a type and as a
      non-type, allowing us to disambiguate more declarations (and thus offer
      improved error recovery for such cases).
      
      This also introduces to the parser the notion of a tentatively-declared name,
      which is an identifier which we *might* have seen a declaration for in a
      tentative parse (but only if we end up disambiguating the tokens as a
      declaration). This is necessary to correctly disambiguate cases where a
      variable is used within its own initializer.
      
      llvm-svn: 162159
      4f605aff
    • Dmitri Gribenko's avatar
      AST Matchers tests: test that member() matches member allocation functions: · edee4789
      Dmitri Gribenko authored
      declare size_t in system-independent way.
      
      llvm-svn: 162158
      edee4789
Loading