Skip to content

Commit a2e86ff

Browse files
fandreuzalbertnetymk
authored andcommitted
8364037: Sort share includes: adlc, libadt, metaprogramming
Reviewed-by: ayang, chagedorn
1 parent e2feff8 commit a2e86ff

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

src/hotspot/share/adlc/adlc.hpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@
2929
// Standard include file for ADLC parser
3030
//
3131

32+
#include <ctype.h>
3233
// standard library constants
3334
#include <iostream>
34-
35+
#include <stdarg.h>
3536
#include <stdio.h>
3637
#include <stdlib.h>
3738
#include <string.h>
38-
#include <ctype.h>
39-
#include <stdarg.h>
4039
#include <sys/types.h>
4140

4241
/* Make sure that we have the intptr_t and uintptr_t definitions */
@@ -86,14 +85,8 @@ typedef unsigned __int64 uintptr_t;
8685

8786
// ADLC components
8887
#include "adlArena.hpp"
89-
#include "opto/adlcVMDeps.hpp"
90-
#include "filebuff.hpp"
91-
#include "dict2.hpp"
92-
#include "forms.hpp"
93-
#include "formsopt.hpp"
94-
#include "formssel.hpp"
95-
#include "archDesc.hpp"
9688
#include "adlparse.hpp"
89+
#include "archDesc.hpp"
9790

9891
// globally define ArchDesc for convenience. Alternatively every form
9992
// could have a backpointer to the AD but it's too complicated to pass

src/hotspot/share/adlc/adlparse.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
#ifndef SHARE_ADLC_ADLPARSE_HPP
2626
#define SHARE_ADLC_ADLPARSE_HPP
2727

28+
#include "filebuff.hpp"
29+
#include "forms.hpp"
30+
#include "formsopt.hpp"
31+
#include "formssel.hpp"
32+
2833
// ADLPARSE.HPP - Definitions for Architecture Description Language Parser
2934
// Authors: Chris Vick and Mike Paleczny
3035

src/hotspot/share/adlc/forms.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#ifndef SHARE_ADLC_FORMS_HPP
2626
#define SHARE_ADLC_FORMS_HPP
2727

28+
#include "dict2.hpp"
29+
#include "opto/adlcVMDeps.hpp"
30+
2831
// FORMS.HPP - ADL Parser Generic and Utility Forms Classes
2932

3033
#define TRUE 1

src/hotspot/share/libadt/dict.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929

3030
// %%%%% includes not needed with AVM framework - Ungar
3131

32-
#include <assert.h>
33-
3432
//------------------------------data-----------------------------------------
3533
// String hash tables
3634
#define MAXID 20

src/hotspot/share/metaprogramming/primitiveConversions.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "memory/allStatic.hpp"
2929
#include "metaprogramming/enableIf.hpp"
3030
#include "utilities/globalDefinitions.hpp"
31+
3132
#include <type_traits>
3233

3334
class PrimitiveConversions : public AllStatic {

test/hotspot/jtreg/sources/TestIncludesAreSorted.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ public class TestIncludesAreSorted {
4343
* can be checked).
4444
*/
4545
private static final String[] HOTSPOT_SOURCES_TO_CHECK = {
46+
"share/adlc",
4647
"share/c1",
4748
"share/ci",
4849
"share/compiler",
4950
"share/jvmci",
51+
"share/libadt",
52+
"share/metaprogramming",
5053
"share/oops",
5154
"share/opto",
5255
"share/services",

0 commit comments

Comments
 (0)