summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/showIncludes.c
Commit message (Collapse)AuthorAgeFilesLines
* Ninja: Restore detection of msvc-wine showIncludes prefixBrad King2023-05-151-0/+8
| | | | | | | | | | | | | | | Since commit 8f82e755f3 (Ninja: Fix detection of MSVC showIncludes prefix in Italian, 2023-01-26, v3.26.0-rc1~20^2) our regex no longer matches the output from `msvc-wine`, which uses forward slashes: Note: including file: /path/to/foo.h `cl /showIncludes` under Wine prints paths of the form `Z:\path\to\file`, but the `msvc-wine` wrapper converts them to the form `/path/to/file` so that native Ninja can be used. Update our regex to match the prefix followed by a path with a leading forward slash. Fixes: #24908
* Ninja: Restore detection of clang-cl showIncludes prefixYR Chen2023-03-201-0/+8
| | | | | | | | | | | | | | | Since commit 8f82e755f3 (Ninja: Fix detection of MSVC showIncludes prefix in Italian, 2023-01-26, v3.26.0-rc1~20^2) our regex no longer matches the output from `clang-cl`, which uses a relative path, forward slashes, and is always in English [1]: Note: including file: ./foo.h Update the regex to match that too. [1] https://github.com/llvm/llvm-project/blob/llvmorg-16.0.0/clang/lib/Frontend/HeaderIncludeGen.cpp#L102 Co-authored-by: Brad King <brad.king@kitware.com>
* Tests: Comment RunCMake.Ninja ShowIncludes sample input languagesBrad King2023-03-201-0/+6
|
* Ninja: Fix detection of MSVC showIncludes prefix in ItalianBrad King2023-01-281-0/+7
| | | | | | The prefix does not have two colons. Update our regex. Fixes: #24357
* Tests: Extend RunCMake.Ninja ShowIncludes cases to cover more languagesBrad King2023-01-281-0/+40
| | | | Add cases for English, French, German, and Japanese.
* Tests: Generalize RunCMake.Ninja ShowIncludes test infrastructureBrad King2023-01-281-12/+26
| | | | Prepare to add support for more languages.
* Tests: Extend RunCMake.Ninja ShowIncludes case with sample pathBrad King2023-01-271-2/+2
| | | | Verify that the prefix is separated from the path.
* Ninja: Match showIncludes dependencies using console output code pageBrad King2022-10-301-0/+33
Generalize the fix from commit 37a279f8d1 (Ninja: Write msvc_deps_prefix as UTF-8 when console codepage is UTF-8, 2020-07-31, v3.19.0-rc1~349^2). `cl /showIncludes` output is encoded using the console output code page, so this is the byte sequence that Ninja must use to match its lines. Fixes: #24068