Skip to content

[Flang][Parser] Add missing #include "flang/Common/idioms.h" #77484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

kparzysz
Copy link
Contributor

@kparzysz kparzysz commented Jan 9, 2024

The file format-specification.h uses definitions from Fortran::common, but doesn't include any headers that provide them.

The file format-specification.h uses definitions from Fortran::common,
but doesn't include any headers that provide them.
@llvmbot llvmbot added flang Flang issues not falling into any other category flang:parser labels Jan 9, 2024
@llvmbot
Copy link
Member

llvmbot commented Jan 9, 2024

@llvm/pr-subscribers-flang-parser

Author: Krzysztof Parzyszek (kparzysz)

Changes

The file format-specification.h uses definitions from Fortran::common, but doesn't include any headers that provide them.


Full diff: https://github.com/llvm/llvm-project/pull/77484.diff

1 Files Affected:

  • (modified) flang/include/flang/Parser/format-specification.h (+2)
diff --git a/flang/include/flang/Parser/format-specification.h b/flang/include/flang/Parser/format-specification.h
index a34e68af2832f3..82bc995a93c484 100644
--- a/flang/include/flang/Parser/format-specification.h
+++ b/flang/include/flang/Parser/format-specification.h
@@ -18,6 +18,8 @@
 // dependences on other parts of the compiler's source code.
 // TODO: support Q formatting extension?
 
+#include "flang/Common/idioms.h"
+
 #include <cinttypes>
 #include <list>
 #include <optional>

Copy link
Contributor

@jeanPerier jeanPerier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, LGTM otherwise, thanks.

@@ -18,6 +18,8 @@
// dependences on other parts of the compiler's source code.
// TODO: support Q formatting extension?

#include "flang/Common/idioms.h"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flang frontend headers do not add blank lines between user and system headers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@kparzysz kparzysz merged commit d4b4ded into llvm:main Jan 10, 2024
@kparzysz kparzysz deleted the users/kparzysz/missing-include branch January 10, 2024 16:18
justinfargnoli pushed a commit to justinfargnoli/llvm-project that referenced this pull request Jan 28, 2024
)

The file format-specification.h uses definitions from Fortran::common,
but doesn't include any headers that provide them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang:parser flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants