[all-commits] [llvm/llvm-project] 2c63ea: [TEST] TreeTest.cpp - Add a comma to avoid build e...

KanRobert via All-commits all-commits at lists.llvm.org
Mon Jun 8 08:14:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c63ea6eded3eed4018306363c28b7f63d7b5898
      https://github.com/llvm/llvm-project/commit/2c63ea6eded3eed4018306363c28b7f63d7b5898
  Author: Shengchen Kan <shengchen.kan at intel.com>
  Date:   2020-06-08 (Mon, 08 Jun 2020)

  Changed paths:
    M clang/unittests/Tooling/Syntax/TreeTest.cpp

  Log Message:
  -----------
  [TEST] TreeTest.cpp - Add a comma to avoid build error with -werror

Summary:
The macro `INSTANTIATE_TEST_CASE_P` is defined as
```
\# define INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator, ...) \
...
```

If we build the test case with -werror, we will get an error like
```
error: ISO C++11 requires at least one argument for the "..." in a
variadic macro

testing::ValuesIn(TestClangConfig::allConfigs()));
                                                ^
```
This patch fixes that.

Reviewers: gribozavr, hlopko, eduucaldas, gribozavr2

Reviewed By: gribozavr2

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list