@@ -102,7 +102,7 @@ TEST(LintRuleRegistryTest, CreateTreeLintRuleInvalid) {
102102TEST (LintRuleRegistryTest, CreateTreeLintRuleValid) {
103103 auto any_rule = CreateSyntaxTreeLintRule (" test-rule-1" );
104104 EXPECT_NE (any_rule, nullptr );
105- #if defined( __GXX_RTTI)
105+ #ifdef __GXX_RTTI
106106 auto rule_1 = dynamic_cast <TreeRule1 *>(any_rule.get ());
107107 EXPECT_NE (rule_1, nullptr );
108108#endif
@@ -155,7 +155,7 @@ TEST(LintRuleRegistryTest, CreateTokenLintRuleInvalid) {
155155TEST (LintRuleRegistryTest, CreateTokenLintRuleValid) {
156156 auto any_rule = CreateTokenStreamLintRule (" token-rule-1" );
157157 EXPECT_NE (any_rule, nullptr );
158- #if defined( __GXX_RTTI)
158+ #ifdef __GXX_RTTI
159159 auto rule_1 = dynamic_cast <TokenRule1 *>(any_rule.get ());
160160 EXPECT_NE (rule_1, nullptr );
161161#endif
@@ -204,7 +204,7 @@ TEST(LintRuleRegistryTest, CreateLineLintRuleInvalid) {
204204TEST (LintRuleRegistryTest, CreateLineLintRuleValid) {
205205 auto any_rule = CreateLineLintRule (" line-rule-1" );
206206 EXPECT_NE (any_rule, nullptr );
207- #if defined( __GXX_RTTI)
207+ #ifdef __GXX_RTTI
208208 auto rule_1 = dynamic_cast <LineRule1 *>(any_rule.get ());
209209 EXPECT_NE (rule_1, nullptr );
210210#endif
@@ -253,7 +253,7 @@ TEST(LintRuleRegistryTest, CreateTextLintRuleInvalid) {
253253TEST (LintRuleRegistryTest, CreateTextLintRuleValid) {
254254 auto any_rule = CreateTextStructureLintRule (" text-rule-1" );
255255 EXPECT_NE (any_rule, nullptr );
256- #if defined( __GXX_RTTI)
256+ #ifdef __GXX_RTTI
257257 auto rule_1 = dynamic_cast <TextRule1 *>(any_rule.get ());
258258 EXPECT_NE (rule_1, nullptr );
259259#endif
0 commit comments