diff --git a/g3doc/quick_reference.md b/g3doc/quick_reference.md index 52c6305671..b6fd12312d 100644 --- a/g3doc/quick_reference.md +++ b/g3doc/quick_reference.md @@ -2801,7 +2801,15 @@ must test the macros of the target *we will call*, e.g. via `hwy::HaveFloat64()` instead of `HWY_HAVE_FLOAT64`, which describes the current target. * `HWY_IDE` is 0 except when parsed by IDEs; adding it to conditions such as - `#if HWY_TARGET != HWY_SCALAR || HWY_IDE` avoids code appearing greyed out. + `#if HWY_TARGET != HWY_SCALAR || HWY_IDE` avoids code appearing greyed out.\ + Note for clangd users: [there is no predefined macros in clangd](https://github.com/clangd/clangd/issues/581), + so you must manually add `__CLANGD__` macro so we can detect the presence of + clangd. This can be easily done by adding these two lines to your project's + `.clangd` file: + ``` + CompileFlags: + Add: [-D__CLANGD__] + ``` The following indicate full support for certain lane types and expand to 1 or 0. diff --git a/g3doc/release_testing_process.md b/g3doc/release_testing_process.md index 2cb8b4ec56..4a1d37f9d5 100644 --- a/g3doc/release_testing_process.md +++ b/g3doc/release_testing_process.md @@ -23,6 +23,7 @@ Prepend to debian/changelog and update mentions of the current version in: * base.h * CMakeLists.txt +* meson.build * MODULE.bazel * g3doc/faq.md diff --git a/hwy/base.h b/hwy/base.h index 4dff1f805f..ef920cf88a 100644 --- a/hwy/base.h +++ b/hwy/base.h @@ -33,7 +33,8 @@ #include "hwy/detect_compiler_arch.h" #include "hwy/highway_export.h" -// API version (https://semver.org/); keep in sync with CMakeLists.txt. +// API version (https://semver.org/); keep in sync with CMakeLists.txt and +// meson.build. #define HWY_MAJOR 1 #define HWY_MINOR 3 #define HWY_PATCH 0 diff --git a/hwy/detect_compiler_arch.h b/hwy/detect_compiler_arch.h index 5d08c61cca..08d8b3ac59 100644 --- a/hwy/detect_compiler_arch.h +++ b/hwy/detect_compiler_arch.h @@ -20,6 +20,11 @@ // inclusion by foreach_target.h. // Add to #if conditions to prevent IDE from graying out code. +// Note for clangd users: There is no predefined macro in clangd, so you must +// manually add these two lines (without the preceding '// ') to your project's +// `.clangd` file: +// CompileFlags: +// Add: [-D__CLANGD__] #if (defined __CDT_PARSER__) || (defined __INTELLISENSE__) || \ (defined Q_CREATOR_RUN) || (defined __CLANGD__) || \ (defined GROK_ELLIPSIS_BUILD) diff --git a/meson.build b/meson.build index 08bec3addc..806c0212b6 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'hwy', 'cpp', - version: '1.2.0', + version: '1.3.0', meson_version: '>= 1.3.0', license: 'Apache-2.0 OR BSD-3-Clause', default_options: [