mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-13814 Visual Studio IntelliSense should ignore the 'urename.h' content so that 'Go-to-Definition' (F12) will actually work in the IDE.
X-SVN-Rev: 41551
This commit is contained in:
parent
99354ec034
commit
3b0a30d6e7
2 changed files with 19 additions and 4 deletions
|
@ -33,6 +33,9 @@
|
|||
|
||||
#if !U_DISABLE_RENAMING
|
||||
|
||||
// Disable Renaming for Visual Studio's IntelliSense feature, so that 'Go-to-Definition' (F12) will work.
|
||||
#if defined(_MSC_VER) && defined(__INTELLISENSE__)
|
||||
|
||||
/* We need the U_ICU_ENTRY_POINT_RENAME definition. There's a default one in unicode/uvernum.h we can use, but we will give
|
||||
the platform a chance to define it first.
|
||||
Normally (if utypes.h or umachine.h was included first) this will not be necessary as it will already be defined.
|
||||
|
@ -1827,6 +1830,8 @@
|
|||
#define ztrans_setTime U_ICU_ENTRY_POINT_RENAME(ztrans_setTime)
|
||||
#define ztrans_setTo U_ICU_ENTRY_POINT_RENAME(ztrans_setTo)
|
||||
|
||||
#endif
|
||||
#endif /* defined(_MSC_VER) && defined(__INTELLISENSE__) */
|
||||
|
||||
#endif
|
||||
#endif /* U_DISABLE_RENAMING */
|
||||
|
||||
#endif /* URENAME_H */
|
||||
|
|
|
@ -106,6 +106,9 @@ print HEADER <<"EndOfHeaderComment";
|
|||
|
||||
#if !U_DISABLE_RENAMING
|
||||
|
||||
// Disable Renaming for Visual Studio's IntelliSense feature, so that 'Go-to-Definition' (F12) will work.
|
||||
#if defined(_MSC_VER) && defined(__INTELLISENSE__)
|
||||
|
||||
/* We need the U_ICU_ENTRY_POINT_RENAME definition. There's a default one in unicode/uvernum.h we can use, but we will give
|
||||
the platform a chance to define it first.
|
||||
Normally (if utypes.h or umachine.h was included first) this will not be necessary as it will already be defined.
|
||||
|
@ -236,8 +239,15 @@ foreach(sort keys(%CFuncs)) {
|
|||
# print HEADER "#define $_ $_$U_ICU_VERSION_SUFFIX\n";
|
||||
}
|
||||
|
||||
print HEADER "\n#endif\n";
|
||||
print HEADER "\n#endif\n";
|
||||
|
||||
print HEADER <<"EndOfHeaderFooter";
|
||||
|
||||
#endif /* defined(_MSC_VER) && defined(__INTELLISENSE__) */
|
||||
#endif /* U_DISABLE_RENAMING */
|
||||
#endif /* URENAME_H */
|
||||
|
||||
EndOfHeaderFooter
|
||||
|
||||
|
||||
close HEADER;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue