HighCommander4 wrote: > [...] people like to **also** ask for a test to be added to libSema's own > code completion test suite. These tests work a bit differently: they're found > at `clang/test/CodeCompletion` (see for example [this > file](https://searchfox.org/llvm/source/clang/test/CodeCompletion/ordinary-name.cpp)), > and they operate by running clang with the special `-code-complete-at` flag > which invokes code completion at a point in the input file and prints the > results in some format.
(In case this test suite seems like dark magic even with that explanation, which is how it initially seemed to me, see https://llvm.org/docs/CommandGuide/lit.html and https://llvm.org/docs/CommandGuide/FileCheck.html for more details of the machinery behind it.) https://github.com/llvm/llvm-project/pull/146258 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits