srctree

Robin Linden parent 0fc5e3c7 8d86525b
meta/clang-tidy: Enable readability-avoid-unconditional-preprocessor-if

inlinesplit
.clang-tidy added: 19, removed: 24, total 0
@@ -35,6 +35,7 @@ Checks: >
modernize-*,
performance-*,
readability-avoid-const-params-in-decls,
readability-avoid-unconditional-preprocessor-if,
readability-container-size-empty,
readability-duplicate-include,
readability-else-after-return,
 
html2/parser_states.h added: 19, removed: 24, total 0
@@ -46,25 +46,21 @@ using InsertionMode = std::variant<Initial,
AfterHead,
InBody,
Text,
#if 0
InTable,
InTableText,
InCaption,
InColumnGroup,
InTableBody,
InRow,
InCell,
InSelect,
InSelectInTable,
InTemplate,
AfterBody,
#endif
// InTable,
// InTableText,
// InCaption,
// InColumnGroup,
// InTableBody,
// InRow,
// InCell,
// InSelect,
// InSelectInTable,
// InTemplate,
// AfterBody,
InFrameset,
AfterFrameset
#if 0
AfterAfterBody,
AfterAfterFrameset
#endif
// AfterAfterBody,
// AfterAfterFrameset
>;
 
struct InTable {};
 
style/styled_node_test.cpp added: 19, removed: 24, total 0
@@ -480,10 +480,8 @@ int main() {
};
 
// TODO(robinlinden)
#if 0
expect_eq(styled_node.get_property<css::PropertyId::FontWeight>(), //
style::FontWeight::bold());
#endif
// expect_eq(styled_node.get_property<css::PropertyId::FontWeight>(), //
// style::FontWeight::bold());
expect_eq(styled_node.get_property<css::PropertyId::FontWeight>(), //
std::nullopt);
});