[clang] 740a75c - Fix assumption that Clang version number is numeric.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 29 21:42:34 PDT 2022


Author: Richard Smith
Date: 2022-08-29T21:42:11-07:00
New Revision: 740a75c9d6adf8a26ebd13fc1d3460c728550624

URL: https://github.com/llvm/llvm-project/commit/740a75c9d6adf8a26ebd13fc1d3460c728550624
DIFF: https://github.com/llvm/llvm-project/commit/740a75c9d6adf8a26ebd13fc1d3460c728550624.diff

LOG: Fix assumption that Clang version number is numeric.

This can be set at configure time and might include other characters.

Added: 
    

Modified: 
    clang/test/Driver/driverkit-path.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/driverkit-path.c b/clang/test/Driver/driverkit-path.c
index 0b752b1fc9c4..690145b240dc 100644
--- a/clang/test/Driver/driverkit-path.c
+++ b/clang/test/Driver/driverkit-path.c
@@ -29,6 +29,6 @@ int main() { return 0; }
 // INC:       -isysroot [[PATH:[^ ]*/Inputs/DriverKit19.0.sdk]]
 // INC-LABEL: #include <...> search starts here:
 // INC:       [[PATH]]/System/DriverKit/usr/local/include
-// INC:       /lib/clang/{{[0-9\.]+}}/include
+// INC:       /lib/clang/{{[^/ ]+}}/include
 // INC:       [[PATH]]/System/DriverKit/usr/include
 // INC:       [[PATH]]/System/DriverKit/System/Library/Frameworks (framework directory)


        


More information about the cfe-commits mailing list