Skip to content
Snippets Groups Projects
  1. Nov 24, 2013
  2. Sep 27, 2013
  3. Aug 22, 2013
  4. Jun 07, 2013
  5. May 16, 2013
  6. May 07, 2013
  7. Apr 13, 2013
  8. Feb 27, 2013
    • Ted Kremenek's avatar
      Refine SourceManager's isBeforeInTranslationUnit() cache to have more entries. · 2564f811
      Ted Kremenek authored
      isBeforeInTranslationUnit() uses a cache to reduce the expensive work
      to compute a common ancestor for two FileIDs.  This work is very
      expensive, so even caching the latest used FileIDs was a big win.
      A closer analysis of the cache before, however, shows that the cache
      access pattern would oscillate between a working set of FileIDs, and
      thus caching more pairs would be profitable.
      
      This patch adds a side table for extending caching.  This side table
      is bounded in size (experimentally determined in this case from
      a simple Objective-C project), and when the table gets too large
      we fall back to the single entry caching before as before.
      
      On Sketch (a small example Objective-C project), this optimization
      reduces -fsyntax-only time on SKTGraphicView.m by 5%.  This is
      for a project that is already using PCH.
      
      Fixes <rdar://problem/13299847>
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176142 91177308-0d34-0410-b5e6-96231b3b80d8
      2564f811
  9. Feb 22, 2013
  10. Feb 17, 2013
  11. Jan 28, 2013
  12. Jan 13, 2013
  13. Jan 12, 2013
  14. Dec 05, 2012
  15. Dec 04, 2012
  16. Nov 30, 2012
  17. Nov 15, 2012
  18. Nov 09, 2012
  19. Oct 20, 2012
  20. Sep 22, 2012
  21. Sep 18, 2012
  22. Jul 29, 2012
  23. Jul 23, 2012
  24. 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
  25. Jul 10, 2012
  26. 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
  27. Jul 02, 2012
  28. Jun 20, 2012
  29. 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
  30. Jun 18, 2012
  31. Jun 15, 2012
  32. 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
  33. 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
  34. May 03, 2012
Loading