[all-commits] [llvm/llvm-project] ffad4f: [clang-tidy] Container-size-empty fixed c++ versio...

Félix-Antoine Constantin via All-commits all-commits at lists.llvm.org
Sat Aug 26 00:25:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffad4f8fcac5fa5e65b979ab2a2fcf903a66e5e2
      https://github.com/llvm/llvm-project/commit/ffad4f8fcac5fa5e65b979ab2a2fcf903a66e5e2
  Author: Felix <felix-antoine.constantin at polymtl.ca>
  Date:   2023-08-26 (Sat, 26 Aug 2023)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp

  Log Message:
  -----------
  [clang-tidy] Container-size-empty fixed c++ version in tests to support string_literals operator

The goal of this PR is to properly implement the std::string_literals::operator""s that was added in commit (4001ae175cbe) but was later changed in commit (ba52a10fca6fc7b791894c584233db012def68a5).

The operator""s was added in c++14 but we were running tests under c++11 which would raise an error when compiling the file.

Reviewed By: PiotrZSL

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




More information about the All-commits mailing list