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__
# pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
#endif
// Work-around silly windows.h define.
#pragma push_macro("STRICT")
#undef STRICT
#pragma push_macro("TRANSPARENT")
#undef TRANSPARENT
#ifndef mozilla_ServoStyleConsts_h
#define mozilla_ServoStyleConsts_h
"""
trailer = """
#pragma pop_macro("STRICT")
#pragma pop_macro("TRANSPARENT")
#endif // mozilla_ServoStyleConsts_h
#pragma GCC diagnostic pop
#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.
*/
"""
include_guard = "mozilla_ServoStyleConsts_h"
include_version = true
braces = "SameLine"
line_length = 80
@ -31,6 +31,13 @@ tab_width = 2
language = "C++"
namespaces = ["mozilla"]
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_deps = true