[all-commits] [llvm/llvm-project] c25cc8: [clang] Don't including None.h (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Thu Dec 8 23:37:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c25cc84b87935feefea5a93abc16efdbc9d91640
      https://github.com/llvm/llvm-project/commit/c25cc84b87935feefea5a93abc16efdbc9d91640
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M clang/include/clang/AST/DeclFriend.h
    M clang/include/clang/AST/TemplateBase.h
    M clang/include/clang/ASTMatchers/ASTMatchersInternal.h
    M clang/include/clang/Analysis/Analyses/PostOrderCFGView.h
    M clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h
    M clang/include/clang/Analysis/CFG.h
    M clang/include/clang/Lex/PreprocessingRecord.h
    M clang/include/clang/Sema/CodeCompleteConsumer.h
    M clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
    M clang/lib/AST/ExternalASTSource.cpp
    M clang/lib/ASTMatchers/ASTMatchersInternal.cpp
    M clang/lib/ASTMatchers/Dynamic/Marshallers.h
    M clang/lib/Analysis/PathDiagnostic.cpp
    M clang/lib/Analysis/UninitializedValues.cpp
    M clang/lib/Driver/Compilation.cpp
    M clang/lib/Frontend/DiagnosticRenderer.cpp
    M clang/lib/Lex/PPMacroExpansion.cpp
    M clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
    M clang/lib/StaticAnalyzer/Core/CallEvent.cpp
    M clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
    M clang/lib/Tooling/Syntax/Tokens.cpp
    M clang/lib/Tooling/Transformer/Parsing.cpp
    M clang/unittests/Format/SortIncludesTest.cpp
    M clang/unittests/Tooling/Syntax/TokensTest.cpp

  Log Message:
  -----------
  [clang] Don't including None.h (NFC)

These source files no longer use None, so they do not need to include
None.h.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716




More information about the All-commits mailing list