chromium/third_party/blink/renderer/core/xml/BUILD.gn

# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//third_party/blink/renderer/core/core.gni")

# Chromium-style plugin produces an error for xpath_grammar_generated.h.
# Disable the plugin for sources including xpath_grammar_generated.h.
# Bison-generated code is not compatible with unsafe_buffers.
blink_core_sources("xpath_generated") {
  sources = [
    "xpath_grammar_generated.cc",
    "xpath_grammar_generated.h",
    "xpath_parser.cc",
  ]
  if (is_clang) {
    configs -= [
      "//build/config/clang:find_bad_constructs",
      "//build/config/clang:unsafe_buffers",
    ]
  }
}