Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cmStandardLevelResolver: Add method to look up standard level by name | Brad King | 2023-10-04 | 1 | -0/+23 |
| | |||||
* | cmStandardLevelResolver: Report feature std level from GetNewRequiredStandard | Brad King | 2023-10-04 | 1 | -12/+13 |
| | | | | | Regardless of whether the feature requires a new (higher) standard level, always report the standard level that the feature needs. | ||||
* | cmStandardLevelResolver: Add method to get feature standard level | Brad King | 2023-10-04 | 1 | -3/+14 |
| | |||||
* | cmStandardLevelResolver: Factor out public representation of level | Brad King | 2023-10-04 | 1 | -17/+15 |
| | |||||
* | cmStandardLevelResolver: Clarify local variable name | Brad King | 2023-10-04 | 1 | -2/+2 |
| | |||||
* | cmStandardLevelResolver: Mark builtin language standards table as const | Brad King | 2023-10-04 | 1 | -31/+27 |
| | |||||
* | cmStandardLevelResolver: add query for the effective standard level | Ben Boeckel | 2023-08-23 | 1 | -0/+113 |
| | | | | This allows for improved error messages. | ||||
* | cmStandardLevelResolver: compare with static string literals | Ben Boeckel | 2023-08-23 | 1 | -1/+3 |
| | |||||
* | cmStandardLevelResolver: use `cmStrCat` where possible | Ben Boeckel | 2023-08-23 | 1 | -10/+12 |
| | |||||
* | cmStandardLevelResolver: use character literals where possible | Ben Boeckel | 2023-08-23 | 1 | -9/+9 |
| | |||||
* | CMake code rely on cmList class for CMake lists management (part. 1) | Marc Chevrier | 2023-04-24 | 1 | -2/+3 |
| | |||||
* | Merge topic 'add_language_levels_for_cxx26' | Brad King | 2022-09-01 | 1 | -12/+16 |
|\ | | | | | | | | | | | | | | | f808d8afb9 CMake: Support upcoming C++26 language level Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !7601 | ||||
| * | CMake: Support upcoming C++26 language level | Robert Maynard | 2022-08-31 | 1 | -12/+16 |
| | | |||||
* | | target_*: Fix cross-directory call backtraces | Brad King | 2022-08-22 | 1 | -2/+5 |
|/ | | | | | | | Record the call-site backtrace, not the current backtrace of the target's directory. Fixes: #23873 | ||||
* | Merge topic 'cmp0128_cuda' | Brad King | 2022-01-24 | 1 | -2/+3 |
|\ | | | | | | | | | | | | | | | | | | | ee1396e29e CMP0128: Add flag in OLD mode even when standard matches the default b2c25de8e0 CMP0128: Avoid test code duplication 3a089cd256 CMP0128: Prefix test names with mode e13dd52535 XL: Detect default extensions mode for legacy compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6890 | ||||
| * | CMP0128: Add flag in OLD mode even when standard matches the default | Raul Tambre | 2022-01-23 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | Commit 4a0485be (cmStandardLevelResolver: Avoid unnecessary flags, fix unset level logic, 2021-04-29) unintentionally changed the behavior by modifying the code to match a pre-existing comment. The resulting behavior change however matches the intentions of CMP0128, so we simply need to guard it. Fixes #23122. | ||||
* | | cmStandardLevelResolver: Better error message on unsupported language level | Robert Maynard | 2022-01-11 | 1 | -2/+6 |
|/ | | | | Fixes #23079 | ||||
* | CMP0128: Enable/disable extensions if standard same as default | Raul Tambre | 2021-11-11 | 1 | -1/+2 |
| | | | | | | | | | | | This was intended to be part of the initial MR (!6177), but accidentally went missing when debugging nightly failures on less common systems. Noticed during !6711 review as the comment about this behaviour didn't match the code. Documentation for CMP0128 is updated to remove a false case and note the two cases related to this. Fixes #22224. | ||||
* | cmStandardLevelResolver: Avoid unnecessary flags, fix unset level logic | Raul Tambre | 2021-09-29 | 1 | -15/+72 |
| | | | | | | | | | | | | | | | | | | The changes are part of CMP0128. When the standard level is unset: * Flags are added if extension mode doesn't match the compiler's default. Previously logic only worked if LANG_EXTENSIONS was ON. Fixes #22224. * The full flag is used. Previously CMAKE_LANG_EXTENSION_COMPILE_OPTION was used. This was only supported for IAR. Otherwise: * Avoid adding flags if not necessary per the detected compiler defaults. * Fixed check for when the requested standard is older. It now matches the nearby comments. I reworded the fallback comment as its logic was a bit difficult to wrap my head around. | ||||
* | Rename cmProp in cmValue | Marc Chevrier | 2021-09-21 | 1 | -15/+15 |
| | |||||
* | Refactor: cmStandardLevelResolver::ComputeFeaturesAvailable returns cmProp | Marc Chevrier | 2021-08-12 | 1 | -3/+3 |
| | |||||
* | cmStandardLevelResolver: Fixed typo in struct name + clang-format | Jaak Ristioja | 2021-07-31 | 1 | -12/+14 |
| | |||||
* | compile_features: Ignore features that map to languages that aren't enabled | Robert Maynard | 2021-06-25 | 1 | -0/+4 |
| | | | | | Remove the Cuda/ConsumeCompileFeatures test as it only existed to validate that using `cxx_std_XY` would cause the paired language (CUDA) to also build in mode XY. | ||||
* | ObjectiveC: Add C17 and C23 support | Gregor Jasny | 2021-06-11 | 1 | -2/+3 |
| | | | | Issue: #22297 | ||||
* | HIP: Add language to CMake | Robert Maynard | 2021-06-07 | 1 | -3/+15 |
| | |||||
* | cmStandardLevelResolver: Fix size assertion in constructor | Brad King | 2021-06-03 | 1 | -1/+1 |
| | | | | Assert sizes of the constructed vectors, not the moved-from inputs. | ||||
* | Source: Remove unnecessary comparisons to nullptr | Vitaly Stakhovsky | 2021-05-10 | 1 | -1/+1 |
| | |||||
* | C23 support | Raul Tambre | 2021-02-25 | 1 | -2/+2 |
| | |||||
* | C17 support | Raul Tambre | 2021-02-25 | 1 | -2/+3 |
| | | | | Implements #17755. | ||||
* | cmStandardLevelResolver: Factor out helper to capture stoi exceptions | Brad King | 2021-01-05 | 1 | -15/+16 |
| | |||||
* | CUDA, CXX, OBJCXX: C++23 support with Clang 12 | Raul Tambre | 2020-12-08 | 1 | -6/+6 |
| | | | | | Clang 12 landed initial support for C++23 language mode flag -std={c|gnu}++2b in commit 6627a3c2873fdf7ccba1a1573371079be48b36e8. | ||||
* | cmMakefile::GetDefinition: return cmProp | Vitaly Stakhovsky | 2020-09-02 | 1 | -13/+13 |
| | |||||
* | Source: use cmNonempty() | Vitaly Stakhovsky | 2020-07-28 | 1 | -2/+2 |
| | |||||
* | Merge topic 'move_more_queries_to_cmStandardLevelResolver' | Brad King | 2020-07-16 | 1 | -10/+149 |
|\ | | | | | | | | | | | | | 56cf509a72 Move AddCompilerRequirementFlag to cmStandardLevelResolver Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4989 | ||||
| * | Move AddCompilerRequirementFlag to cmStandardLevelResolver | Robert Maynard | 2020-07-15 | 1 | -10/+149 |
| | | | | | | | | | | | | | | The cmLocalGenerator::AddCompilerRequirementFlag was another source of truth on what standard levels existed per language, so fold that into cmStandardLevelResolver to make updating CMake easier | ||||
* | | cmNonempty: Convenience inlines to check for non-empty string | Vitaly Stakhovsky | 2020-07-14 | 1 | -1/+1 |
|/ | |||||
* | fileapi: Support multiple backtraces for language standard | Justin Goshi | 2020-07-06 | 1 | -1/+5 |
| | |||||
* | cmStandardLevelResolver: Refactor to remove duplicate code | Robert Maynard | 2020-07-03 | 1 | -574/+190 |
| | | | | This will make it easier to add new languages that have standard flags. | ||||
* | cmStandardLevelResolver: Added to handle standard level queries | Robert Maynard | 2020-07-01 | 1 | -0/+779 |
Refactored out of cmMakefile |