Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8154079

Catch incorrectly included .inline.hpp files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • hotspot
    • None
    • gc

      To minimize include dependencies we have a rule on our style guide page stating that .inline.hpp files should not be included in .hpp files:

      https://wiki.openjdk.java.net/display/HotSpot/StyleGuide
      * .inline.hpp files should only be included in .cpp or .inline.hpp files.

      I propose that we use the include list in precompiled.hpp, some preprocessor checks, and a way to "tag" specific .inline.hpp to check for "incorrect" includes of these .inline.hpp checks.

            stefank Stefan Karlsson
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: