[all-commits] [llvm/llvm-project] 8f9f7d: [clang-tidy] Tweak misc-static-assert fix in c++17

Nathan James via All-commits all-commits at lists.llvm.org
Mon Mar 1 10:52:14 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f9f7d02aaac98f8539158e05975e7acbbb58fcc
      https://github.com/llvm/llvm-project/commit/8f9f7d02aaac98f8539158e05975e7acbbb58fcc
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc-static-assert.cpp

  Log Message:
  -----------
  [clang-tidy] Tweak misc-static-assert fix in c++17

If C++17 mode is enabled and the assert doesn't have a string literal, we can emit a static assert with no message in favour of one with an empty message.

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list