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

Add tool support to check order of includes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • infrastructure
    • None

      JDK-8347706 is not the first issue opened to address out of order #include statements and as long as ordering requirements[1] are not checked automatically, it probably won't be the last. It should not be too hard to come up with a bash script that can be run as part of jcheck to do this checking.

      [1] https://github.com/openjdk/jdk/blob/df9210e6578acd53384ee1ac06601510c9a52696/doc/hotspot-style.md?plain=1#L141-L148

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: