We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given the following two module files
export module a; struct integer { explicit operator int() const { return 0; } }; template<typename> int a = static_cast<int>(integer()); void aa() { a<void>; }
import a; int main() { }
And compiling them with
clang++ -std=c++20 -x c++-module -fmodule-output=a.pcm --precompile -c a.cpp clang++ -ftime-trace -std=c++20 -fmodule-file=a=a.pcm -c b.cpp
We see one additional entry in the b.json time trace compared to the output if we delete the line that instantiates the variable template:
b.json
{ "pid": 53878, "tid": 53889, "ph": "X", "ts": 0, "dur": 60, "name": "Total EvaluateAsInitializer", "args": { "count": 1, "avg ms": 0 } }
The text was updated successfully, but these errors were encountered:
@llvm/issue-subscribers-clang-modules
Sorry, something went wrong.
b6c7177
ChuanqiXu9
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Given the following two module files
And compiling them with
We see one additional entry in the
b.json
time trace compared to the output if we delete the line that instantiates the variable template:The text was updated successfully, but these errors were encountered: