Skip to content

[clang-tidy] [coroutines] Stop using -fcoroutines-ts in clang-tidy's test #60864

@ChuanqiXu9

Description

@ChuanqiXu9

I'm trying to remove -fcoroutines-ts in clang. But I met problems in the test of clang-tidy. In clang-tidy/checkers/readability/identifier-naming.cpp, it uses -std=c++17 -fcoroutines-ts. But when I replace the combination with -std=c++20, it tells me it can't recognize co_await anymore. Then the test log shows:

'-std=c++17', '-fcoroutines-ts', '-I/disk2/workspace.xuchuanqi/llvm-project-for-work/clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming', '-isystem', '/disk2/workspace.xuchuanqi/llvm-project-for-work/clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming/system', '-std=c++11', '-nostdinc++'

Here is a -std=c++11 in the ending place so the -std=c++20 option doesn't work. I don't know how to move on. Could any one who is familiar with clang-tidy remove the use of -fcoroutines-ts in clang-tidy?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions