Skip to content

Commit 4bf89ea

Browse files
committed
wip no hoist
1 parent 911f7f0 commit 4bf89ea

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/c4/yml/parse_engine.def.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,6 +2164,7 @@ typename ParseEngine<EventHandler>::ScannedScalar ParseEngine<EventHandler>::_sc
21642164
while( ! _finished_file())
21652165
{
21662166
bool line_is_blank = true;
2167+
C4_DONT_OPTIMIZE(m_evt_handler->m_curr->line_contents.rem); // prevent hoisting
21672168
csubstr rem = m_evt_handler->m_curr->line_contents.rem;
21682169
_c4dbgpf("scanning double quoted scalar @ line[{}]: line='{}'", m_evt_handler->m_curr->pos.line, rem);
21692170
if(C4_UNLIKELY(_is_doc_token(rem)))

src/c4/yml/parse_engine.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ typedef enum BlockChomp_ {
211211
CHOMP_STRIP, //!< no newline at end (-)
212212
CHOMP_KEEP //!< all newlines from end (+)
213213
} BlockChomp_e;
214-
/** @cond endcond */
214+
/** @endcond */
215215

216216

217217
/** Quickly inspect the source to estimate the number of nodes the

0 commit comments

Comments
 (0)