[all-commits] [llvm/llvm-project] 715c72: [NFC][analyzer] Return underlying strings directly...

kepler-5 via All-commits all-commits at lists.llvm.org
Thu Dec 9 16:06:17 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 715c72b4fbf43d00909ebc9677d59ce8bb24bc23
      https://github.com/llvm/llvm-project/commit/715c72b4fbf43d00909ebc9677d59ce8bb24bc23
  Author: Logan Smith <logan.r.smith0 at gmail.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
    M clang/lib/Analysis/AnalysisDeclContext.cpp
    M clang/lib/StaticAnalyzer/Checkers/FuchsiaHandleChecker.cpp
    M clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
    M clang/lib/StaticAnalyzer/Core/MemRegion.cpp

  Log Message:
  -----------
  [NFC][analyzer] Return underlying strings directly instead of OS.str()

This avoids an unnecessary copy required by 'return OS.str()', allowing
instead for NRVO or implicit move. The .str() call (which flushes the
stream) is no longer required since 65b13610a5226b84889b923bae884ba395ad084d,
which made raw_string_ostream unbuffered by default.

Differential Revision: https://reviews.llvm.org/D115374


  Commit: ad17ea12e70abb05b6984f530618131181be9dad
      https://github.com/llvm/llvm-project/commit/ad17ea12e70abb05b6984f530618131181be9dad
  Author: Logan Smith <logan.r.smith0 at gmail.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/lib/AST/ASTDiagnostic.cpp
    M clang/lib/AST/AttrImpl.cpp
    M clang/lib/AST/Decl.cpp
    M clang/lib/AST/DeclarationName.cpp
    M clang/lib/AST/OpenMPClause.cpp

  Log Message:
  -----------
  [NFC][AST] Return underlying strings directly instead of OS.str()

This avoids an unnecessary copy required by 'return OS.str()', allowing
instead for NRVO or implicit move. The .str() call (which flushes the
stream) is no longer required since 65b13610a5226b84889b923bae884ba395ad084d,
which made raw_string_ostream unbuffered by default.

Differential Revision: https://reviews.llvm.org/D115374


  Commit: 08eb614e309048b695a9eb0d94e636b2324de094
      https://github.com/llvm/llvm-project/commit/08eb614e309048b695a9eb0d94e636b2324de094
  Author: Logan Smith <logan.r.smith0 at gmail.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/include/clang/Testing/TestClangConfig.h
    M clang/unittests/AST/ASTTraverserTest.cpp
    M clang/unittests/Analysis/MacroExpansionContextTest.cpp
    M clang/unittests/Tooling/Syntax/TreeTest.cpp

  Log Message:
  -----------
  [NFC][testing] Return underlying strings directly instead of OS.str()

This avoids an unnecessary copy required by 'return OS.str()', allowing
instead for NRVO or implicit move. The .str() call (which flushes the
stream) is no longer required since 65b13610a5226b84889b923bae884ba395ad084d,
which made raw_string_ostream unbuffered by default.

Differential Revision: https://reviews.llvm.org/D115374


  Commit: 0cf6f7b128dd457711ba5c0ebfcb8143dc1632f8
      https://github.com/llvm/llvm-project/commit/0cf6f7b128dd457711ba5c0ebfcb8143dc1632f8
  Author: Logan Smith <logan.r.smith0 at gmail.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp
    M clang/lib/Basic/SourceLocation.cpp
    M clang/lib/Basic/Version.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Frontend/TestModuleFileExtension.cpp
    M clang/lib/Rewrite/HTMLRewrite.cpp

  Log Message:
  -----------
  [NFC][clang] Return underlying strings directly instead of OS.str()

This avoids an unnecessary copy required by 'return OS.str()', allowing
instead for NRVO or implicit move. The .str() call (which flushes the
stream) is no longer required since 65b13610a5226b84889b923bae884ba395ad084d,
which made raw_string_ostream unbuffered by default.

Differential Revision: https://reviews.llvm.org/D115374


  Commit: 5276002a89b9aeb4c5f920d627630b1637c68ddc
      https://github.com/llvm/llvm-project/commit/5276002a89b9aeb4c5f920d627630b1637c68ddc
  Author: Logan Smith <logan.r.smith0 at gmail.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/lib/Sema/CodeCompleteConsumer.cpp
    M clang/lib/Sema/SemaAttr.cpp

  Log Message:
  -----------
  [NFC][Sema] Return underlying strings directly instead of OS.str()

This avoids an unnecessary copy required by 'return OS.str()', allowing
instead for NRVO or implicit move. The .str() call (which flushes the
stream) is no longer required since 65b13610a5226b84889b923bae884ba395ad084d,
which made raw_string_ostream unbuffered by default.

Differential Revision: https://reviews.llvm.org/D115374


  Commit: 5336befe8c3cde08cec020583700b4d2ba25ac16
      https://github.com/llvm/llvm-project/commit/5336befe8c3cde08cec020583700b4d2ba25ac16
  Author: Logan Smith <logan.r.smith0 at gmail.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/lib/Tooling/Syntax/Tokens.cpp
    M clang/lib/Tooling/Syntax/Tree.cpp
    M clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp

  Log Message:
  -----------
  [NFC][tools] Return underlying strings directly instead of OS.str()

This avoids an unnecessary copy required by 'return OS.str()', allowing
instead for NRVO or implicit move. The .str() call (which flushes the
stream) is no longer required since 65b13610a5226b84889b923bae884ba395ad084d,
which made raw_string_ostream unbuffered by default.

Differential Revision: https://reviews.llvm.org/D115374


Compare: https://github.com/llvm/llvm-project/compare/76d3d07845c9...5336befe8c3c


More information about the All-commits mailing list