llvm-project/clang/unittests/Frontend
Paul Pluzhnikov 35ab2a11bb Fix a buglet in remove_dots().
The function promises to canonicalize the path, but neglected to do so
for the root component.

For example, calling remove_dots("/tmp/foo.c", Style::windows_backslash)
resulted in "/tmp\foo.c". Now it produces "\tmp\foo.c".

Also fix FIXME in the corresponding test.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D126412
2022-06-02 11:07:44 -07:00
..
ASTUnitTest.cpp [clang] createInvocationFromCommandLine -> createInvocation, delete former. NFC 2022-05-06 16:21:48 +02:00
CMakeLists.txt [clangd] Avoid "expected one compiler job" by picking the first eligible job. 2021-08-13 00:36:30 +02:00
CodeGenActionTest.cpp [clang] Fix CodeGenAction for LLVM IR MemBuffers 2022-03-09 00:39:48 +00:00
CompilerInstanceTest.cpp [clang] createInvocationFromCommandLine -> createInvocation, delete former. NFC 2022-05-06 16:21:48 +02:00
CompilerInvocationTest.cpp [test][clang] Use -clear-ast-before-backend instead of -flegacy-pass-manager in CommandLineTest 2022-04-11 14:06:40 -07:00
FixedPointString.cpp
FrontendActionTest.cpp PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
OutputStreamTest.cpp Frontend: Fix memory leak in CompilerInstance::setVerboseOutputStream 2021-01-26 14:57:23 -08:00
PCHPreambleTest.cpp Fix a buglet in remove_dots(). 2022-06-02 11:07:44 -07:00
ParsedSourceLocationTest.cpp
TextDiagnosticTest.cpp [llvm] Add null-termination capability to SmallVectorMemoryBuffer 2021-12-09 11:32:13 +01:00
UtilsTest.cpp [Frontend] Flip default of CreateInvocationOptions::ProbePrecompiled to false 2022-05-10 16:58:13 +02:00