Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TableGen: Avoid emitting trailing whitespace in StringToOffsetTable#148840

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

arsenm
Copy link
Contributor

No description provided.

@arsenmGraphite App
Copy link
ContributorAuthor

arsenm commentedJul 15, 2025
edited
Loading

@arsenmarsenm requested review fromjurahul andnikicJuly 15, 2025 12:28
@arsenmarsenm marked this pull request as ready for reviewJuly 15, 2025 12:28
@llvmbot
Copy link
Member

@llvm/pr-subscribers-tablegen

Author: Matt Arsenault (arsenm)

Changes

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

1 Files Affected:

  • (modified) llvm/lib/TableGen/StringToOffsetTable.cpp (+1-1)
diff --git a/llvm/lib/TableGen/StringToOffsetTable.cpp b/llvm/lib/TableGen/StringToOffsetTable.cppindex 9fb41485db745..d6d2c2590389a 100644--- a/llvm/lib/TableGen/StringToOffsetTable.cpp+++ b/llvm/lib/TableGen/StringToOffsetTable.cpp@@ -38,7 +38,7 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS, #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Woverlength-strings" #endif-{} constexpr char {}{}Storage[] = )",+{} constexpr char {}{}Storage[] =)",                 ClassPrefix.empty() ? "static" : "", ClassPrefix, Name);    // MSVC silently miscompiles string literals longer than 64k in some

@@ -38,7 +38,7 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS,
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverlength-strings"
#endif
{} constexpr char {}{}Storage[] =)",
{} constexpr char {}{}Storage[] =)",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you'd want to add a whitespace before"{\n" a few lines below then?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I don't think so, it looks right as is. Every entry ends up on its own line, though under-indented

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm referring to the >64k case, which now would print={ instead of= { I think. But it doesn't particularly matter...

@@ -38,7 +38,7 @@ void StringToOffsetTable::EmitStringTableDef(raw_ostream &OS,
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverlength-strings"
#endif
{} constexpr char {}{}Storage[] =)",
{} constexpr char {}{}Storage[] =)",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm referring to the >64k case, which now would print={ instead of= { I think. But it doesn't particularly matter...

@arsenmGraphite App
Copy link
ContributorAuthor

arsenm commentedJul 15, 2025
edited
Loading

Merge activity

  • Jul 15, 2:13 PM UTC: A user started a stack merge that includes this pull request viaGraphite.
  • Jul 15, 2:25 PM UTC:Graphite rebased this pull request as part of a merge.
  • Jul 15, 2:27 PM UTC:@arsenm merged this pull request withGraphite.

@arsenmarsenmforce-pushed theusers/arsenm/tablegen/use-string-offset-table-runtime-libcall-names branch 3 times, most recently from0798c63 tob113ff2CompareJuly 15, 2025 14:21
Base automatically changed fromusers/arsenm/tablegen/use-string-offset-table-runtime-libcall-names tomainJuly 15, 2025 14:24
@arsenmarsenmforce-pushed theusers/arsenm/tablegen/avoid-trailing-whitespace-string-to-offset-table branch from8e3742e to74ed3ccCompareJuly 15, 2025 14:25
@arsenmarsenm merged commit8db92a7 intomainJul 15, 2025
7 of 9 checks passed
@arsenmarsenm deleted the users/arsenm/tablegen/avoid-trailing-whitespace-string-to-offset-table branchJuly 15, 2025 14:27
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nikicnikicnikic approved these changes

@jurahuljurahulAwaiting requested review from jurahul

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@arsenm@llvmbot@nikic

[8]ページ先頭

©2009-2025 Movatter.jp