Add a VisualStudio cpp.hint file

It allows to improve IntelliSense results. E.g., this specific
SAL_THROW_EXTERN_C define prevented from navigating to function
implementations like rtl_str_hashCode_WithLength from IDE using
'Go To Definition' feature.

As described in the respective documentation [1], "Hint files
relate to physical directories, not the logical directories shown
in Solution Explorer", which means that the file can't be placed
e.g. in solenv/vs, together with the .natvis file.

[1] https://go.microsoft.com/fwlink/?linkid=865984

Change-Id: I144d07b66b4a52c108a7e82b0aa9628843f5ae2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138665
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2022-08-22 11:56:42 +03:00
parent 0483fbd1d0
commit 3bf0fbb267

4
cpp.hint Normal file
View file

@ -0,0 +1,4 @@
// Hint files help the Visual Studio IDE interpret Visual C++ identifiers
// such as names of functions and macros.
// For more information see https://go.microsoft.com/fwlink/?linkid=865984
#define SAL_THROW_EXTERN_C()