[PATCH] D65300: [clang] [CodeGen] clang-misexpect prototype for compiler warnings

Paul Kirth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 2 19:19:49 PDT 2019


paulkirth updated this revision to Diff 213164.
paulkirth added a comment.

Address feedback from review

1. Fixed comments in License headers
2. removed excess {}
3. Changed conditional assignment to ternary operation
4. Moved local functions into anonymous namespace
5. Added reference to the origin of the threshold values in the clang source code
6. Updated warning to have more useful text
7. Fixed whitespace
8. Updated unqualified use of llvm::None
9. Updated tests with new warning text


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65300/new/

https://reviews.llvm.org/D65300

Files:
  clang/include/clang/Basic/CodeGenOptions.def
  clang/include/clang/Driver/Options.td
  clang/lib/CodeGen/CGStmt.cpp
  clang/lib/CodeGen/CMakeLists.txt
  clang/lib/CodeGen/CodeGenFunction.cpp
  clang/lib/CodeGen/CodeGenFunction.h
  clang/lib/CodeGen/MisExpect.cpp
  clang/lib/CodeGen/MisExpect.h
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/Profile/Inputs/misexpect-branch-nonconst-expect-arg.proftext
  clang/test/Profile/Inputs/misexpect-branch.proftext
  clang/test/Profile/Inputs/misexpect-switch-default-only.proftext
  clang/test/Profile/Inputs/misexpect-switch.proftext
  clang/test/Profile/misexpect-branch-cold.c
  clang/test/Profile/misexpect-branch-nonconst-expected-val.c
  clang/test/Profile/misexpect-branch.c
  clang/test/Profile/misexpect-no-warning-without-flag.c
  clang/test/Profile/misexpect-switch-default.c
  clang/test/Profile/misexpect-switch-nonconst.c
  clang/test/Profile/misexpect-switch-only-default-case.c
  clang/test/Profile/misexpect-switch.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65300.213164.patch
Type: text/x-patch
Size: 31884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190803/91549754/attachment-0001.bin>


More information about the cfe-commits mailing list