Skip to content
Snippets Groups Projects
  1. Nov 30, 2012
  2. Nov 15, 2012
  3. Nov 09, 2012
  4. Oct 20, 2012
  5. Sep 22, 2012
  6. Sep 18, 2012
  7. Jul 29, 2012
  8. Jul 23, 2012
  9. Jul 11, 2012
    • Argyrios Kyrtzidis's avatar
      Introduce a flag in SourceManager to treat non-system source files · ff398965
      Argyrios Kyrtzidis authored
      as "volatile", meaning there's a high enough chance that they may
      change while we are trying to use them.
      
      This flag is only enabled by libclang.
      Currently "volatile" source files will be stat'ed immediately
      before opening them, because the file size stat info
      may not be accurate since when we got it (e.g. from the PCH).
      This avoids crashes when trying to reference mmap'ed memory
      from a file whose size is not what we expect.
      
      Note that there's still a window for a racing issue to occur
      but the window for it should be way smaller than before.
      We can consider later on to avoid mmap completely on such files.
      
      rdar://11612916
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160074 91177308-0d34-0410-b5e6-96231b3b80d8
      ff398965
  10. Jul 10, 2012
  11. Jul 03, 2012
    • James Dennett's avatar
      Documentation cleanup: · af50aab0
      James Dennett authored
      * Primarily, added \brief to most of include/clang/Basic, instead of prefixing
        the comments with "DeclaredName - ";
      * Made some brief summaries significantly briefer;
      * Fixed up some erroneous uses of \see and \arg;
      * Fixed up some extraneous backslashes in \code...\endcode blocks;
      * Fixed up some typos/spelling errors.
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159616 91177308-0d34-0410-b5e6-96231b3b80d8
      af50aab0
  12. Jul 02, 2012
  13. Jun 20, 2012
  14. Jun 19, 2012
    • Meador Inge's avatar
      Revert predefined decl tracking. · 9416d424
      Meador Inge authored
      r158085 added some logic to track predefined declarations.  The main reason we
      had predefined declarations in the input was because the __builtin_va_list
      declarations were injected into the preprocessor input.  As of r158592 we 
      explicitly build the __builtin_va_list declarations.  Therefore the predefined
      decl tracking is no longer needed.
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158732 91177308-0d34-0410-b5e6-96231b3b80d8
      9416d424
  15. Jun 18, 2012
  16. Jun 15, 2012
  17. Jun 14, 2012
    • James Dennett's avatar
      More doxygen/documentation cleanups. · 809d1be9
      James Dennett authored
      This reduces the number of warnings generated by Doxygen by about 100
      (roughly 10%).  Issues addressed:
      (1) Primarily, backslash-escaped "@foo" and "#bah" in Doxygen comments
      when they're not supposed to be Doxygen commands or links, and
      similarly for "<baz>" when it's not intended as as HTML tag;
      (2) Changed some \t commands (which don't exist) to \c ("to refer to a
      word of code", as the Doxygen manual says);
      (3) \precondition becomes \pre;
      (4) When touching comments, deleted a couple of spurious spaces in them;
      (5) Changed some \n and \r to \\n and \\r;
      (6) Fixed one tiny typo: #pragms -> #pragma.
      
      This patch touches documentation/comments only.
      
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158422 91177308-0d34-0410-b5e6-96231b3b80d8
      809d1be9
  18. Jun 06, 2012
    • Jordan Rose's avatar
      Add pedantic warning -Wempty-translation-unit (C11 6.9p1). · d73ef135
      Jordan Rose authored
      In standard C since C89, a 'translation-unit' is syntactically defined to have
      at least one "external-declaration", which is either a decl or a function
      definition. In Clang the latter gives us a declaration as well.
      
      The tricky bit about this warning is that our predefines can contain external
      declarations (__builtin_va_list and the 128-bit integer types). Therefore our
      AST parser now makes sure we have at least one declaration that doesn't come
      from the predefines buffer.
      
      Also, remove bogus warning about empty source files. This doesn't catch source
      files that only contain comments, and never fired anyway because of our
      predefines.
      
      PR12665 and <rdar://problem/9165548>
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158085 91177308-0d34-0410-b5e6-96231b3b80d8
      d73ef135
  19. May 03, 2012
  20. Feb 21, 2012
    • Argyrios Kyrtzidis's avatar
      [PCH] Recover gracefully if the ASTReader detects that a file is different · a4c29b6e
      Argyrios Kyrtzidis authored
      from the one stored in the PCH/AST, while trying to load a SLocEntry.
      
      We verify that all files of the PCH did not change before loading it but this is not enough because:
      
      - The AST may have been 1) kept around, 2) to do queries on it.
      - We may have 1) verified the PCH and 2) started parsing.
      
      Between 1) and 2) files may change and we are going to have crashes because the rest of clang
      cannot deal with the ASTReader failing to read a SLocEntry.
      
      Handle this by recovering gracefully in such a case, by initializing the SLocEntry
      with the info from the PCH/AST as well as reporting failure by the ASTReader.
      
      rdar://10888929
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151004 91177308-0d34-0410-b5e6-96231b3b80d8
      a4c29b6e
  21. Feb 20, 2012
  22. Jan 27, 2012
  23. Jan 06, 2012
  24. Jan 05, 2012
  25. Dec 21, 2011
  26. Dec 10, 2011
  27. Nov 19, 2011
  28. Nov 16, 2011
  29. Nov 05, 2011
  30. Oct 31, 2011
  31. Oct 25, 2011
  32. Oct 20, 2011
  33. Oct 18, 2011
  34. Oct 12, 2011
  35. Sep 27, 2011
  36. Sep 26, 2011
Loading