Kaydet (Commit) fb4bf693 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused KeywordsOnly from IdentifierTranslationMode

Change-Id: I7262e618a14fa9e025d269b560da752e3200309d
üst 1920061b
...@@ -169,8 +169,7 @@ OString translateUnoToCppIdentifier( ...@@ -169,8 +169,7 @@ OString translateUnoToCppIdentifier(
|| unoIdentifier == "xor" || unoIdentifier == "xor"
/* unoIdentifier == "xor_eq" */ /* unoIdentifier == "xor_eq" */
// Standard macros: // Standard macros:
|| (transmode != IdentifierTranslationMode::KeywordsOnly || (unoIdentifier == "BUFSIZ"
&& (unoIdentifier == "BUFSIZ"
|| unoIdentifier == "CLOCKS_PER_SEC" || unoIdentifier == "CLOCKS_PER_SEC"
|| unoIdentifier == "EDOM" || unoIdentifier == "EDOM"
|| unoIdentifier == "EOF" || unoIdentifier == "EOF"
...@@ -264,7 +263,7 @@ OString translateUnoToCppIdentifier( ...@@ -264,7 +263,7 @@ OString translateUnoToCppIdentifier(
|| unoIdentifier == "UCHAR_MAX" || unoIdentifier == "UCHAR_MAX"
|| unoIdentifier == "UINT_MAX" || unoIdentifier == "UINT_MAX"
|| unoIdentifier == "ULONG_MAX" || unoIdentifier == "ULONG_MAX"
|| unoIdentifier == "USHRT_MAX")) || unoIdentifier == "USHRT_MAX")
|| (transmode == IdentifierTranslationMode::Global || (transmode == IdentifierTranslationMode::Global
&& (// Standard types: && (// Standard types:
/* unoIdentifier == "clock_t" */ /* unoIdentifier == "clock_t" */
......
...@@ -47,8 +47,7 @@ rtl::OString translateUnoToCppType( ...@@ -47,8 +47,7 @@ rtl::OString translateUnoToCppType(
enum class IdentifierTranslationMode { enum class IdentifierTranslationMode {
Global, Global,
NonGlobal, NonGlobal
KeywordsOnly
}; };
rtl::OString translateUnoToCppIdentifier( rtl::OString translateUnoToCppIdentifier(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment