Closed
Description
#define STD import std;
STD;
int main() {
std::cout << 1 <<std::endl;
}
This file will compile, but clang-scan-deps
gives:
{
"revision": 0,
"rules": [
{
"primary-output": "test"
}
],
"version": 1
}
The command is clang-scan-deps.exe -format=p1689 -- clang++.exe -fansi-escape-codes -fcolor-diagnostics -c -march=native -std=c++20 -Wall main.cpp -o test
But if I change to
#define STD std;
import STD;
int main() {
std::cout << 1 <<std::endl;
}
Now it gives the correct output.