Bug 1903575 - Undefine STRICT for ServoStyleConsts.h after the included headers. r=layout-reviewers,emilio

Differential Revision: https://phabricator.services.mozilla.com/D214267
This commit is contained in:
Jari Jalkanen 2024-06-20 10:39:47 +00:00
Родитель f0ac70a2d9
Коммит e729cdd153
1 изменённых файлов: 13 добавлений и 6 удалений

Просмотреть файл

@ -7,15 +7,16 @@ header = """/* This Source Code Form is subject to the terms of the Mozilla Publ
#ifdef __clang__ #ifdef __clang__
# pragma GCC diagnostic ignored "-Wreturn-type-c-linkage" # pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
#endif #endif
// Work-around silly windows.h define.
#pragma push_macro("STRICT") #ifndef mozilla_ServoStyleConsts_h
#undef STRICT #define mozilla_ServoStyleConsts_h
#pragma push_macro("TRANSPARENT")
#undef TRANSPARENT
""" """
trailer = """ trailer = """
#pragma pop_macro("STRICT") #pragma pop_macro("STRICT")
#pragma pop_macro("TRANSPARENT") #pragma pop_macro("TRANSPARENT")
#endif // mozilla_ServoStyleConsts_h
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#include "mozilla/ServoStyleConstsInlines.h" #include "mozilla/ServoStyleConstsInlines.h"
""" """
@ -23,7 +24,6 @@ autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated usi
* To modify this file, edit servo/ports/geckolib/cbindgen.toml and build Firefox. * To modify this file, edit servo/ports/geckolib/cbindgen.toml and build Firefox.
*/ */
""" """
include_guard = "mozilla_ServoStyleConsts_h"
include_version = true include_version = true
braces = "SameLine" braces = "SameLine"
line_length = 80 line_length = 80
@ -31,6 +31,13 @@ tab_width = 2
language = "C++" language = "C++"
namespaces = ["mozilla"] namespaces = ["mozilla"]
includes = ["mozilla/ServoStyleConstsForwards.h", "mozilla/ServoStyleSet.h"] includes = ["mozilla/ServoStyleConstsForwards.h", "mozilla/ServoStyleSet.h"]
after_includes = """
// Work-around silly windows.h define.
#pragma push_macro("STRICT")
#undef STRICT
#pragma push_macro("TRANSPARENT")
#undef TRANSPARENT
"""
[parse] [parse]
parse_deps = true parse_deps = true