summaryrefslogtreecommitdiff
path: root/cpp.hint
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-08-22 11:56:42 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-08-22 16:01:16 +0200
commit3bf0fbb267ea6c3a3c23efdeabbdced0724d65f1 (patch)
treefdc704b8ec9829032705fa7c38768bbef17d7068 /cpp.hint
parent0483fbd1d05d74c394d9274bdee77b3b2aebb495 (diff)
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>
Diffstat (limited to 'cpp.hint')
-rw-r--r--cpp.hint4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp.hint b/cpp.hint
new file mode 100644
index 000000000000..fcc7da600731
--- /dev/null
+++ b/cpp.hint
@@ -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()