1. Apr 07, 2020
  2. Apr 06, 2020
  3. Apr 07, 2020
    • Paula Toth's avatar
      [clang-tidy] Add check llvmlibc-implementation-in-namespace. · 00a57558
      Paula Toth authored
      Summary:
      This check makes sure all llvm-libc implementations falls within the `__llvm_libc` namespace.
      
      Reviewers: alexfh, aaron.ballman, hokein, njames93
      
      Reviewed By: aaron.ballman
      
      Subscribers: Eugene.Zelenko, libc-commits, mgorny, xazax.hun, MaskRay, cfe-commits, sivachandra
      
      Tags: #clang-tools-extra, #clang
      
      Differential Revision: https://reviews.llvm.org/D76818
      00a57558
    • Kirill Naumov's avatar
      [CFGPrinter][CallPrinter][polly] Adding distinct structure for CFGDOTInfo · 3f995ce8
      Kirill Naumov authored
      The patch introduces the system to distinctively store the information
      needed for the Control Flow Graph as well as the instrumentary needed for
      the follow-up changes: BlockFrequencyInfo and BranchProbabilityInfo.
      The patch is a part of sequence of three patches, related to graphs Heat Coloring.
      
      Reviewers: rcorcs, apilipenko, davidxl, sfertile, fedor.sergeev, eraman, bollu
      
      Differential Revision: https://reviews.llvm.org/D76820
      3f995ce8
    • Reid Kleckner's avatar
      Remove llvm::Error include form Diagnostic.h · 76221c73
      Reid Kleckner authored
      Saves ~400 related LLVM ADT. llvm/ADT/Error.h takes 90ms to parse.
      
      $ diff -u <(sort thedeps-before.txt) <(sort thedeps-after.txt) \
          | grep '^[-+] ' | sort | uniq -c | sort -nr
          403 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Error.h
          403 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm-c/Error.h
          397 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Format.h
          397 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Debug.h
          377 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/StringExtras.h
          158 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm-c/ExternC.h
          138 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/ErrorOr.h
           13 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/raw_ostream.h
           13 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/SmallString.h
            5 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/Twine.h
      76221c73
    • Jean-Michel Gorius's avatar
    • Louis Dionne's avatar
      [libc++] Make sure we execute tests with the current environment · 26727356
      Louis Dionne authored
      The new libc++ test format doesn't automatically do this (cause it
      would be the wrong place to do it).
      26727356
    • Artem Dergachev's avatar
      [analyzer] Fix NSErrorChecker false positives on constructors. · 9b1e4a82
      Artem Dergachev authored
      Constructors and delete operators cannot return a boolean value.
      Therefore they cannot possibly follow the NS/CFError-related coding
      conventions.
      
      Patch by Valeriy Savchenko!
      
      Differential Revision: https://reviews.llvm.org/D77551
      9b1e4a82
    • Artem Dergachev's avatar
      [analyzer] Fix scan-build and exploded-graph-rewriter tests on Windows. · 2ddd3325
      Artem Dergachev authored
      Detect script locations in a more straightforward way: we don't need to
      search for them because we know exactly where they are anyway.
      
      Fix a file path escaping issue in exploded-graph-rewriter with Windows
      backslashes in the path.
      
      'REQUIRES: shell' remains in scan-build tests for now, so that to
      observe the buildbot reaction on removing it in a cleaner experiment.
      
      Patch by Denys Petrov!
      
      Differential Revision: https://reviews.llvm.org/D76768
      2ddd3325
    • Reid Kleckner's avatar
      [AST] Remove DeclCXX.h dep on ASTContext.h · b36c19bc
      Reid Kleckner authored
      Saves only 36 includes of ASTContext.h and related headers.
      
      There are two deps on ASTContext.h:
      - C++ method overrides iterator types (TinyPtrVector)
      - getting LangOptions
      
      For #1, duplicate the iterator type, which is
      TinyPtrVector<>::const_iterator.
      
      For #2, add an out-of-line accessor to get the language options. Getting
      the ASTContext from a Decl is already an out of line method that loops
      over the parent DeclContexts, so if it is ever performance critical, the
      proper fix is to pass the context (or LangOpts) into the predicate in
      question.
      
      Other changes are just header fixups.
      b36c19bc
    • Yaxun (Sam) Liu's avatar
      Speed up deferred diagnostic emitter · 2c31aa2d
      Yaxun (Sam) Liu authored
      Move function emitDeferredDiags from Sema to DeferredDiagsEmitter since it
      is only used by DeferredDiagsEmitter.
      
      Also skip visited functions to avoid exponential compile time.
      
      Differential Revision: https://reviews.llvm.org/D77028
      2c31aa2d
  4. Apr 06, 2020
  5. Apr 07, 2020