diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-11-18 22:24:33 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-11-18 22:24:33 +0900 |
commit | 3b0c3b8206964b85bf3716c962d26dd15c4f285f (patch) | |
tree | 2f0973dbf96c2892d19a55b6f846f130e7399a48 /debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/quick_align_again.cpp | |
parent | ff287d2f48d4f4253bf84f19bd7fe937b61ede45 (diff) | |
download | extra-dependencies-3b0c3b8206964b85bf3716c962d26dd15c4f285f.tar.gz extra-dependencies-3b0c3b8206964b85bf3716c962d26dd15c4f285f.zip |
It is no longer necessary to maintain a customize trinity version.
Upstream version can be used as is.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/quick_align_again.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/quick_align_again.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/quick_align_again.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/quick_align_again.cpp deleted file mode 100644 index 640abba9..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/quick_align_again.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @file quick_align_again.cpp - * - * @author Guy Maurel - * split from align.cpp - * @author Ben Gardner - * @license GPL v2+ - */ - -#include "quick_align_again.h" - -#include "align_stack.h" -#include "chunk.h" - - -void quick_align_again() -{ - LOG_FUNC_ENTRY(); - - for (Chunk *pc = Chunk::GetHead(); pc->IsNotNullChunk(); pc = pc->GetNext()) - { - char copy[1000]; - LOG_FMT(LALAGAIN, "%s(%d): orig line is %zu, orig col is %zu, column is %zu, Text() '%s'\n", - __func__, __LINE__, pc->GetOrigLine(), pc->GetOrigCol(), pc->GetColumn(), pc->ElidedText(copy)); - - if ( pc->GetAlignData().next->IsNotNullChunk() - && pc->TestFlags(PCF_ALIGN_START)) - { - AlignStack as; - as.Start(100, 0); - as.m_right_align = pc->GetAlignData().right_align; - as.m_star_style = static_cast<AlignStack::StarStyle>(pc->GetAlignData().star_style); - as.m_amp_style = static_cast<AlignStack::StarStyle>(pc->GetAlignData().amp_style); - as.m_gap = pc->GetAlignData().gap; - - LOG_FMT(LALAGAIN, "%s(%d): pc->Text() is '%s', orig line is %zu\n", - __func__, __LINE__, pc->Text(), pc->GetOrigLine()); - as.Add(pc->GetAlignData().start); - pc->SetFlagBits(PCF_WAS_ALIGNED); - - for (Chunk *tmp = pc->GetAlignData().next; tmp->IsNotNullChunk(); tmp = tmp->GetAlignData().next) - { - tmp->SetFlagBits(PCF_WAS_ALIGNED); - as.Add(tmp->GetAlignData().start); - LOG_FMT(LALAGAIN, "%s(%d): => tmp->Text() is '%s', orig line is %zu\n", - __func__, __LINE__, tmp->Text(), tmp->GetOrigLine()); - } - - LOG_FMT(LALAGAIN, "\n"); - as.End(); - } - } -} // quick_align_again |