]> git.lyx.org Git - lyx.git/commitdiff
Bulk cleanup/fix incorrect annotation at the end of namespaces.
authorChristian Ridderström <christian.ridderstrom@profoto.com>
Sun, 23 Jul 2017 11:11:54 +0000 (13:11 +0200)
committerChristian Ridderström <christian.ridderstrom@profoto.com>
Sun, 23 Jul 2017 11:11:54 +0000 (13:11 +0200)
This commit does a bulk fix of incorrect annotations (comments) at the
end of namespaces.

The commit was generated by initially running clang-format, and then
from the diff of the result extracting the hunks corresponding to
fixes of namespace comments. The changes being applied and all the
results have been manually reviewed. The source code successfully
builds on macOS.

Further details on the steps below, in case they're of interest to
someone else in the future.

1. Checkout a fresh and up to date version of src/

    git pull && git checkout -- src && git status src

2. Ensure there's a suitable .clang-format in place, i.e. with options
   to fix the comment at the end of namespaces, including:

    FixNamespaceComments:                           true
    SpacesBeforeTrailingComments:                   1

and that clang-format is >= 5.0.0, by doing e.g.:

    clang-format -dump-config | grep Comments:
    clang-format --version

3. Apply clang-format to the source:

    clang-format -i $(find src -name "*.cpp" -or -name "*.h")

4. Create and filter out hunks related to fixing the namespace

    git diff -U0 src > tmp.patch
    grepdiff '^} // namespace' --output-matching=hunk tmp.patch  > fix_namespace.patch

5. Filter out hunks corresponding to simple fixes into to a separate patch:

    pcregrep -M -e '^diff[^\n]+\nindex[^\n]+\n--- [^\n]+\n\+\+\+ [^\n]+\n'  \
        -e '^@@ -[0-9]+ \+[0-9]+ @@[^\n]*\n-\}[^\n]*\n\+\}[^\n]*\n'         \
        fix_namespace.patch > fix_namespace_simple.patch

6. Manually review the simple patch and then apply it, after first
   restoring the source.

    git checkout -- src
    patch -p1 < fix_namespace_simple.path

7. Manually review the (simple) changes and then stage the changes

    git diff src
    git add src

8. Again apply clang-format and filter out hunks related to any
   remaining fixes to the namespace, this time filter with more
   context. There will be fewer hunks as all the simple cases have
   already been handled:

    clang-format -i $(find src -name "*.cpp" -or -name "*.h")
    git diff src > tmp.patch
    grepdiff '^} // namespace' --output-matching=hunk tmp.patch  > fix_namespace2.patch

9. Manually review/edit the resulting patch file to remove hunks for files
   which need to be dealt with manually, noting the file names and
   line numbers. Then restore files to as before applying clang-format
   and apply the patch:

    git checkout src
    patch -p1 < fix_namespace2.patch

10. Manually fix the files noted in the previous step. Stage files,
    review changes and commit.

154 files changed:
src/AspellChecker.cpp
src/BiblioInfo.cpp
src/BranchList.cpp
src/Buffer.cpp
src/Buffer.h
src/BufferList.h
src/BufferParams.cpp
src/BufferView.cpp
src/Changes.cpp
src/CiteEnginesList.cpp
src/CiteEnginesList.h
src/Converter.cpp
src/ConverterCache.cpp
src/Counters.cpp
src/Cursor.cpp
src/CutAndPaste.cpp
src/CutAndPaste.h
src/DocumentClassPtr.h
src/EnchantChecker.cpp
src/Encoding.cpp
src/Font.cpp
src/FontInfo.cpp
src/Format.cpp
src/FuncRequest.cpp
src/HunspellChecker.cpp
src/IndicesList.cpp
src/InsetList.cpp
src/LaTeX.cpp
src/LaTeXFeatures.cpp
src/Language.cpp
src/Layout.cpp
src/LayoutModuleList.h
src/Lexer.cpp
src/LyX.cpp
src/LyXRC.cpp
src/ModuleList.h
src/Paragraph.cpp
src/Server.cpp
src/Session.cpp
src/Session.h
src/Spacing.cpp
src/Text.cpp
src/Text3.cpp
src/TextClass.cpp
src/TextMetrics.cpp
src/Thesaurus.cpp
src/frontends/qt4/CategorizedCombo.cpp
src/frontends/qt4/ColorCache.cpp
src/frontends/qt4/DockView.cpp
src/frontends/qt4/DockView.h
src/frontends/qt4/FancyLineEdit.cpp
src/frontends/qt4/FancyLineEdit.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiCharacter.cpp
src/frontends/qt4/GuiClipboard.cpp
src/frontends/qt4/GuiCommandBuffer.cpp
src/frontends/qt4/GuiDelimiter.cpp
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiErrorList.cpp
src/frontends/qt4/GuiExternal.cpp
src/frontends/qt4/GuiFontLoader.cpp
src/frontends/qt4/GuiFontMetrics.cpp
src/frontends/qt4/GuiGraphics.cpp
src/frontends/qt4/GuiHyperlink.cpp
src/frontends/qt4/GuiIdListModel.h
src/frontends/qt4/GuiImage.cpp
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiProgressView.cpp
src/frontends/qt4/GuiSymbols.cpp
src/frontends/qt4/GuiToolbar.cpp
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/LengthCombo.h
src/frontends/qt4/Menus.cpp
src/frontends/qt4/qt_helpers.cpp
src/graphics/PreviewLoader.cpp
src/insets/ExternalSupport.cpp
src/insets/ExternalTemplate.cpp
src/insets/ExternalTransforms.cpp
src/insets/InsetBibtex.cpp
src/insets/InsetBibtex.h
src/insets/InsetBox.cpp
src/insets/InsetExternal.cpp
src/insets/InsetGraphics.cpp
src/insets/InsetGraphics.h
src/insets/InsetIPAMacro.cpp
src/insets/InsetInclude.cpp
src/insets/InsetIndex.cpp
src/insets/InsetInfo.cpp
src/insets/InsetLayout.cpp
src/insets/InsetListingsParams.cpp
src/insets/InsetNomencl.cpp
src/insets/InsetNote.cpp
src/insets/InsetPhantom.cpp
src/insets/InsetQuotes.cpp
src/insets/InsetRef.cpp
src/insets/InsetScript.cpp
src/insets/InsetSpecialChar.cpp
src/insets/InsetTOC.cpp
src/insets/InsetTabular.cpp
src/insets/InsetVSpace.cpp
src/insets/RenderGraphic.cpp
src/insets/RenderPreview.cpp
src/lengthcommon.cpp
src/lyxfind.cpp
src/mathed/InsetMathDecoration.cpp
src/mathed/InsetMathFrac.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathSideset.cpp
src/mathed/InsetMathSpace.cpp
src/mathed/MathAutoCorrect.cpp
src/mathed/MathExtern.cpp
src/mathed/MathFactory.cpp
src/mathed/MathRow.cpp
src/mathed/MathSupport.cpp
src/output.cpp
src/output_docbook.cpp
src/output_latex.cpp
src/output_xhtml.cpp
src/support/Changer.h
src/support/ForkedCalls.cpp
src/support/ForkedCalls.h
src/support/Messages.cpp
src/support/Package.cpp
src/support/RefChanger.h
src/support/Systemcall.cpp
src/support/bind.h
src/support/convert.cpp
src/support/debug.cpp
src/support/debug.h
src/support/docstream.cpp
src/support/docstream.h
src/support/docstring.cpp
src/support/lstrings.cpp
src/support/numpunct_lyx_char_type.h
src/support/os.cpp
src/support/os_cygwin.cpp
src/support/os_unix.cpp
src/support/os_win32.cpp
src/support/pmprof.h
src/support/regex.h
src/support/strfwd.h
src/support/tests/dummy_functions.cpp
src/support/unicode.cpp
src/support/unique_ptr.h
src/tests/check_layout.cpp
src/tests/dummy_functions.cpp
src/tex2lyx/Context.cpp
src/tex2lyx/Parser.cpp
src/tex2lyx/dummy_impl.cpp
src/tex2lyx/tex2lyx.cpp
src/tex2lyx/text.cpp
src/texstream.cpp
src/texstream.h
src/update_flags.h

index 61eab520e5156d17963c1a00dd6a6e6d5cf41847..96a8f8e73c5d76f625490afd2309a0bf871cb1da 100644 (file)
@@ -49,7 +49,7 @@ struct Speller {
 typedef std::map<std::string, Speller> Spellers;
 typedef map<std::string, PersonalWordList *> LangPersonalWordList;
 
-} // anon namespace
+} // namespace
 
 struct AspellChecker::Private
 {
index 07c0b67f9aa2712e6fcdab44c7e5efbc88439d8a..87245d3824f1c8c74f69e61798897dd195c8ed30 100644 (file)
@@ -476,7 +476,7 @@ docstring processRichtext(docstring const & str, bool richtext)
        return ret;
 }
 
-} // anon namespace
+} // namespace
 
 
 //////////////////////////////////////////////////////////////////////
@@ -756,7 +756,7 @@ docstring parseOptions(docstring const & format, string & optkey,
 }
 
 
-} // anon namespace
+} // namespace
 
 /* FIXME
 Bug #9131 revealed an oddity in how we are generating citation information
@@ -1148,7 +1148,7 @@ public:
        }
 };
 
-} // namespace anon
+} // namespace
 
 
 vector<docstring> const BiblioInfo::getXRefs(BibTeXInfo const & data, bool const nested) const
@@ -1409,7 +1409,7 @@ bool lSorter(BibTeXInfo const * lhs, BibTeXInfo const * rhs)
                || (lauth == rauth && lyear == ryear && ltitl < rtitl);
 }
 
-}
+} // namespace
 
 
 void BiblioInfo::collectCitedEntries(Buffer const & buf)
index 4624f19f4da4c2091b0375112bf57d1343d64b77..ec6a413c6ca08e07d0b9023eae35ac59df9bf6a3 100644 (file)
@@ -42,7 +42,7 @@ private:
        docstring name_;
 };
 
-}
+} // namespace
 
 
 Branch::Branch()
index df7efa8f0c0c3e398630f462c77d4669f8ef1172..a9cc619060193b58232cf8d64d25a0a632f7c9d3 100644 (file)
@@ -136,7 +136,7 @@ int const LYX_FORMAT = LYX_FORMAT_LYX;
 typedef map<string, bool> DepClean;
 typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;
 
-} // namespace anon
+} // namespace
 
 
 // A storehouse for the cloned buffers.
@@ -4100,7 +4100,7 @@ int AutoSaveBuffer::generateChild()
        return pid;
 }
 
-} // namespace anon
+} // namespace
 
 
 FileName Buffer::getEmergencyFileName() const
index d483de9a0839bccdc891456a46e144bc53e0f3e1..165f5d8795a1ae218c3fe2de406cd06e4ce04567 100644 (file)
@@ -64,18 +64,18 @@ class WordLangTuple;
 namespace frontend {
 class GuiBufferDelegate;
 class WorkAreaManager;
-}
+} // namespace frontend
 
 namespace support {
 class DocFileName;
 class FileName;
 class FileNamePairList;
-}
+} // namespace support
 
 namespace graphics {
 class PreviewLoader;
 class Cache;
-}
+} // namespace graphics
 
 
 class Buffer;
index d4ae186a907991fbd86be35be04be1b01b1ec232..01698af4bbc7f5b12fe7ca222db39b42ee8ced43 100644 (file)
@@ -26,7 +26,7 @@ class OutputParams;
 namespace support {
 class FileName;
 class FileNameList;
-}
+} // namespace support
 
 /**
  * The class holds all all open buffers, and handles construction
index f4890eaeec9c9d7cdffbe129b7051f8e763d5703..22e84778fe0313f3fc5c6e257e6dc217bb868895 100644 (file)
@@ -323,7 +323,7 @@ bool inSystemDir(FileName const & document_dir, string & system_dir)
        return false;
 }
 
-} // anon namespace
+} // namespace
 
 
 class BufferParams::Impl
@@ -1119,7 +1119,7 @@ namespace {
                        return "\"" + str + "\"";
                return str;
        }
-}
+} // namespace
 
 
 void BufferParams::writeFile(ostream & os, Buffer const * buf) const
index 2f256369f651f8e94c75b18b6210e76e4c55aa20..19547ef56448e1d43245a3d973e0a250fff81cd0 100644 (file)
@@ -216,7 +216,7 @@ enum ScreenUpdateStrategy {
        DecorationUpdate
 };
 
-} // anon namespace
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////
index 343af39b1e47c988c26fc55cc43dcd0f9e40720c..8d4933c55fc353f76e262aaa9c94b86069c468de 100644 (file)
@@ -382,7 +382,7 @@ docstring getLaTeXMarkup(docstring const & macro, docstring const & author,
        return ods.str();
 }
 
-} //namespace anon
+} // namespace
 
 
 int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams,
index 3c10b4003cb4f16a349009eb072f8f528016e90f..58b686511b0eda996efd99dd093001ccc5f543bf 100644 (file)
@@ -148,7 +148,7 @@ CiteEngineTypeTranslator const & citeenginetypetranslator()
        return translator;
 }
 
-} // namespace anon
+} // namespace
 
 
 string CiteEnginesList::getTypeAsString(CiteEngineType const & et) const
index a9ed959648d1da3e5532729a6a50782f98a01c7d..24bec03852015130ec8cb5cf2620dc097cd028e6 100644 (file)
@@ -156,5 +156,5 @@ public:
 };
 
 extern CiteEnginesList theCiteEnginesList;
-}
+} // namespace lyx
 #endif
index d7bdf0a7d529a313ca1df63b32266c41df4a63ea..489f5df439b62da275bf54f2265bad1b3313b337 100644 (file)
@@ -95,7 +95,7 @@ private:
        string const to_;
 };
 
-} // namespace anon
+} // namespace
 
 
 Converter::Converter(string const & f, string const & t,
index 60ce245ab9671489e9aa42e35786520df9ad4370..2373b84d2fb06f2fe1ea6ef781aac02fbdef97bc 100644 (file)
@@ -76,7 +76,7 @@ public:
        unsigned long checksum;
 };
 
-}
+} // namespace
 
 
 /** The cache contains one item per orig file and target format, so use a
index 75c891128efa90777a0ba9a04a7164e5e14232aa..2daac53224dca0a4f26e6850d3b7d7a228e6c1be 100644 (file)
@@ -482,7 +482,7 @@ docstring const fnsymbolCounter(int const n)
        };
 }
 
-} // namespace anon
+} // namespace
 
 
 docstring Counters::labelItem(docstring const & ctr,
index 1223782c358a16d72b1341f5073045cbabeed9d1..0c8ee1d6c5abe5c1a59bccfe7ca784aabdcf9c80 100644 (file)
@@ -115,7 +115,7 @@ DocIterator bruteFind(Cursor const & c, int x, int y)
 }
 
 
-} // namespace anon
+} // namespace
 
 
 CursorData::CursorData()
@@ -758,7 +758,7 @@ bool findNonVirtual(Row const & row, Row::const_iterator & cit, bool onleft)
        return cit != row.end() && !cit->isVirtual();
 }
 
-}
+} // namespace
 
 void Cursor::getSurroundingPos(pos_type & left_pos, pos_type & right_pos) const
 {
@@ -2054,7 +2054,7 @@ docstring parbreak(Cursor const * cur)
        return os.str();
 }
 
-}
+} // namespace
 
 
 docstring Cursor::selectionAsString(bool with_label) const
index 1a63c40fc6f248f1221c608163c4fd0eba5ed112..05f9b90bca42f3430bed0512f019c195ddbf18ff 100644 (file)
@@ -659,9 +659,7 @@ void copySelectionHelper(Buffer const & buf, Text const & text,
        cutstack.push(make_pair(copy_pars, dc));
 }
 
-} // namespace anon
-
-
+} // namespace
 
 
 namespace cap {
@@ -933,7 +931,7 @@ void cutSelectionHelper(Cursor & cur, CutStack & cuts, bool doclear, bool realcu
        }
 }
 
-}
+} // namespace
 
 void cutSelection(Cursor & cur, bool doclear, bool realcut)
 {
@@ -1010,7 +1008,7 @@ void copySelectionToStack(Cursor const & cur, CutStack & cutstack)
        }
 }
 
-}
+} // namespace
 
 
 void copySelectionToStack()
index 94535151c7855f534e07cb0d79de6785c127d49e..43a89c33d05c521aca67a9998c16a8dcf9886388 100644 (file)
@@ -164,6 +164,6 @@ void dirtyTabularStack(bool b);
 /// is the tabular paste stack newer than the ordinary one?
 bool tabularStackDirty();
 } // namespace cap
-} // namespce lyx
+} // namespace lyx
 
 #endif
index b2c95a00235457e2a1892a19e503415102ac0978..42479b3137730b2e8b9bebfd2da9d5a2c5d8e5fb 100644 (file)
@@ -19,6 +19,6 @@ class DocumentClass;
 
 typedef std::shared_ptr<DocumentClass> DocumentClassPtr;
 typedef std::shared_ptr<DocumentClass const> DocumentClassConstPtr;
-}
+} // namespace lyx
 
 #endif // DISPATCH_RESULT_H
index d2b849175ded38ddfcd3534400cc02161dff92a4..5ef399a24ad14ea8769d387223fd36a2a5e69793 100644 (file)
@@ -36,7 +36,7 @@ struct Speller {
 
 typedef map<string, Speller> Spellers;
 
-} // anon namespace
+} // namespace
 
 struct EnchantChecker::Private
 {
index 7dc12af0271fb1849f1212a6a654980eb566b3c4..96e35ecbb707e04e75fee87cb30211fbbdc8173e 100644 (file)
@@ -59,7 +59,7 @@ MathAlphaSet mathalpha;
 /// The highest code point in UCS4 encoding (1<<20 + 1<<16)
 char_type const max_ucs4 = 0x110000;
 
-} // namespace anon
+} // namespace
 
 
 EncodingException::EncodingException(char_type c)
index 89dc802af0eed0d71e59ffedb803530050e9219f..450d67fa3a1b794fbbd6717c0ef451fdf8f3099e 100644 (file)
@@ -94,7 +94,7 @@ char const * LaTeXSizeNames[NUM_SIZE + 4] =
 { "tiny", "scriptsize", "footnotesize", "small", "normalsize", "large",
   "Large", "LARGE", "huge", "Huge", "error8", "error9", "error10", "error11" };
 
-} // namespace anon
+} // namespace
 
 
 Font::Font(FontInfo bits, Language const * l)
index b6e7d6726efbd8fd90c3d31333d8c918efc405a6..2aaab38e5df64cd6e0ae7792b9c73f6be2e39ea0 100644 (file)
@@ -524,7 +524,7 @@ string getSizeCSS(FontSize const & s)
        return "";
 }
 
-} // namespace anonymous
+} // namespace
 
 
 // FIXME This does not yet handle color
index 4a33eb07c49e97c80ef4548979b00029500c9dc4..b7a8c20b94cbfb8c2caf11342b0fc6c32f1878aa 100644 (file)
@@ -102,7 +102,7 @@ private:
 };
 
 
-} //namespace anon
+} // namespace
 
 bool Format::formatSorter(Format const * lhs, Format const * rhs)
 {
@@ -397,7 +397,7 @@ string guessFormatFromContents(FileName const & fn)
        return string();
 }
 
-}
+} // namespace
 
 
 string Formats::getFormatFromFile(FileName const & filename) const
@@ -857,7 +857,7 @@ FlavorTranslator const & flavorTranslator()
        return translator;
 }
 
-}
+} // namespace
 
 
 std::string flavor2format(OutputParams::FLAVOR flavor)
index 224ba27894f6b1ecaeaeb1475bd91d9732188aa0..cd47c55595785f5f59b827938ece3e68e2b00060 100644 (file)
@@ -101,7 +101,7 @@ void splitArg(vector<string> & args, string const & str,
        }
 }
 
-}
+} // namespace
 
 string FuncRequest::getArg(unsigned int i) const
 {
index 4aac75d4eea90deaff15a84d6142363a2fa774eb..6dc6647b5cf4829687bc1418ef89dd9b707a09c4 100644 (file)
@@ -47,7 +47,7 @@ typedef map<std::string, PersonalWordList *> LangPersonalWordList;
 
 typedef vector<WordLangTuple> IgnoreList;
 
-} // anon namespace
+} // namespace
 
 
 struct HunspellChecker::Private
index 26881549a179edd908ebcece02b22347362fb084..e974cebc9da6d059b2bedce9a8ff600c9da00092 100644 (file)
@@ -58,7 +58,7 @@ private:
        docstring shortc_;
 };
 
-}
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////
index d1b6d43d805b386d48668a532b71f79cc2a1f02d..50cf8e9d2c00390c23b9d3b0aa1faf05f03372ac 100644 (file)
@@ -36,7 +36,7 @@ struct InsetTablePosLess
        }
 };
 
-} // namespace anon
+} // namespace
 
 
 InsetList::InsetList(InsetList const & il) : list_(il.list_)
index ab11854e290024e376b377066a2dcb0091e32f5b..a768c9916484644fbc4b5030df5b34a0dfd9477d 100644 (file)
@@ -58,7 +58,7 @@ docstring runMessage(unsigned int count)
        return bformat(_("Waiting for LaTeX run number %1$d"), count);
 }
 
-} // anon namespace
+} // namespace
 
 /*
  * CLASS TEXERRORS
@@ -1132,7 +1132,7 @@ int iterateLine(string const & token, regex const & reg, string const & closing,
        return result;
 }
 
-} // anon namespace
+} // namespace
 
 
 void LaTeX::deplog(DepTable & head)
index 54cf237eb5a822441d2142240b81a8fd514a5964..92e48293cd28d15d4bf872f5dabef6cb60e5476f 100644 (file)
@@ -682,7 +682,7 @@ TexString getSnippets(std::list<TexString> const & list)
        return snip.release();
 }
 
-} //anon namespace
+} // namespace
 
 
 void LaTeXFeatures::addPreambleSnippet(TexString ts, bool allow_dupes)
@@ -997,7 +997,7 @@ int const nb_bibliofeatures = sizeof(bibliofeatures) / sizeof(char const *);
 
 int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
 
-}
+} // namespace
 
 
 string const LaTeXFeatures::getColorOptions() const
@@ -1770,7 +1770,7 @@ docstring const i18npreamble(docstring const & templ, Language const * lang,
        return from_utf8(preamble);
 }
 
-}
+} // namespace
 
 
 docstring const LaTeXFeatures::getTClassI18nPreamble(bool use_babel,
index 902eab3ad4c4e466b697cc62895262e12c0d954b..31212cba2894c1e624d45fb7ec9cbbd6eabe4553 100644 (file)
@@ -329,7 +329,7 @@ Match match(string const & code, Language const & lang)
        return NoMatch;
 }
 
-}
+} // namespace
 
 
 void Languages::readLayoutTranslations(support::FileName const & filename)
index ea651daf220708209d710a7e1596b0d71c77de3c..f9d181db73c611b2ee0ec4771ccd4e2484de9224 100644 (file)
@@ -1578,7 +1578,7 @@ string makeMarginValue(char const * side, double d)
        return os.str();
 }
 
-}
+} // namespace
 
 
 void Layout::makeDefaultCSS() const
index 8b47074a8e5ad516692191c62fed7dfa54da1dc0..c56e5725725225890c596ab4e069ec6758894127 100644 (file)
@@ -96,5 +96,5 @@ private:
        ///
        std::list<std::string> lml_;
 };
-}
+} // namespace lyx
 #endif
index 9cb5452ea9fa383cfea108b5179edc5451da0145..becd157886cd3d1952469e741a02ff810bfc996c 100644 (file)
@@ -148,7 +148,7 @@ public:
        }
 };
 
-} // end of anon namespace
+} // namespace
 
 
 Lexer::Pimpl::Pimpl(LexerKeyword * tab, int num)
index 0a0a31959b9c8de262b8f71a0e479019edb9f7e1..4e97f7ae64b92286ef5aa0a3152349942c1f2e32 100644 (file)
@@ -150,7 +150,7 @@ void showFileError(string const & error)
                           "Please check your installation."), from_utf8(error)));
 }
 
-} // namespace anon
+} // namespace
 
 /// The main application class private implementation.
 struct LyX::Impl {
@@ -775,7 +775,7 @@ namespace {
                        return std::string(line, nameLen);
                }
        }
-}
+} // namespace
 
 void cleanDuplicateEnvVars()
 {
@@ -1384,7 +1384,7 @@ int parse_force(string const & arg, string const &, string &)
 }
 
 
-} // namespace anon
+} // namespace
 
 
 void LyX::easyParse(int & argc, char * argv[])
index 802e3cd47bd42ecbb24cd725334e82d38f4d55e4..27d5fcf3a0a68e7683ee6b5f668231850125354a 100644 (file)
@@ -212,7 +212,7 @@ LexerKeyword lyxrcTags[] = {
 
 const int lyxrcCount = sizeof(lyxrcTags) / sizeof(lyxrcTags[0]);
 
-} // namespace anon
+} // namespace
 
 
 LyXRC::LyXRC()
@@ -377,7 +377,7 @@ void oldFontFormat(string & family, string & foundry)
                foundry.erase();
 }
 
-} // namespace anon
+} // namespace
 
 
 bool LyXRC::read(FileName const & filename, bool check_format)
@@ -1287,7 +1287,7 @@ namespace {
                             "\"", "\\\"");
        }
 
-}
+} // namespace
 
 
 void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) const
index 9f6434ef81955b665ae698b665ec0edaaa7591d4..e2d4a28f02dcf955aa7095d3a37ec9c688a0135a 100644 (file)
@@ -155,5 +155,5 @@ public:
 };
 
 extern ModuleList theModuleList;
-}
+} // namespace lyx
 #endif
index 73157e6b7d60f5605b698b419e157d93e4509564..7c3300d601f8bdfe016b6c44bcf88c1badf25904 100644 (file)
@@ -87,7 +87,7 @@ namespace {
 /// Inset identifier (above 0x10ffff, for ucs-4)
 char_type const META_INSET = 0x200001;
 
-}
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////
@@ -1569,7 +1569,7 @@ void flushString(ostream & os, docstring & s)
        s.erase();
 }
 
-}
+} // namespace
 
 
 void Paragraph::write(ostream & os, BufferParams const & bparams,
@@ -2200,7 +2200,7 @@ bool corrected_env(otexstream & os, string const & suffix, string const & env,
        return true;
 }
 
-} // namespace anon
+} // namespace
 
 
 int Paragraph::Private::startTeXParParams(BufferParams const & bparams,
@@ -2928,7 +2928,7 @@ void doFontSwitch(vector<html::FontTag> & tagsToOpen,
                flag = false;
        }
 }
-}
+} // namespace
 
 
 docstring Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
index 4364f08e4157b7d497477b6d1b93a74582cc485d..f545bb503820dba761ef97212686f58e8e8776b5 100644 (file)
@@ -117,7 +117,7 @@ string errormsg(DWORD const error)
        return message;
 }
 
-} // namespace anon
+} // namespace
 
 
 DWORD WINAPI pipeServerWrapper(void * arg)
@@ -997,7 +997,7 @@ struct Sleep : QThread
        }
 };
 
-} // namespace anon
+} // namespace
 
 
 bool LyXComm::loadFilesInOtherInstance()
index 3dc2ebc9ee452bea65b210b03f36c8dba51b180d..f2cb8b4ca0909adbb3f06db4b83dbab572259b72 100644 (file)
@@ -36,7 +36,7 @@ string const sec_toolbars = "[toolbars]";
 string const sec_lastcommands = "[last commands]";
 string const sec_authfiles = "[auth files]";
 
-} // anon namespace
+} // namespace
 
 
 namespace lyx {
@@ -480,4 +480,4 @@ void AuthFilesSection::write(ostream & os) const
 }
 
 
-}
+} // namespace lyx
index f471f4d28e06e70c9bc083b26dcf6a40de650012..8074b56dd9128ce7712f693b02e34ef6ebf761a2 100644 (file)
@@ -408,6 +408,6 @@ private:
 /// Implemented in LyX.cpp.
 Session & theSession();
 
-} // lyx
+} // namespace lyx
 
 #endif
index 0239a090dbab6500395a6deaa743eed0f4ce6992..cd5816e60031398f5cc9450e5c8ebe3a41c15ca1 100644 (file)
@@ -99,7 +99,7 @@ string envName(Spacing::Space space, bool useSetSpace)
        return useSetSpace ? name : support::ascii_lowercase(name);
 }
 
-}
+} // namespace
 
 string const Spacing::writeEnvirBegin(bool useSetSpace) const
 {
index 1224406682237ced6cd8110a51a9805d5ba31fa8..8cac506e566379473cf314683c7eaf93eeee8ed4 100644 (file)
@@ -948,7 +948,7 @@ bool canInsertChar(Cursor const & cur, char_type c)
        return true;
 }
 
-}
+} // namespace
 
 
 // insert a character, moves all the following breaks in the
index 364e91c1dc1a2d87608ad04b9d72b8f1cc1de9e5..68e3f2f66bd5c600683af2b227731cecb4189aa9 100644 (file)
@@ -491,7 +491,7 @@ namespace {
                return lang.empty() ? cur.getFont().language() : languages.getLanguage(lang);
        }
 
-}
+} // namespace
 
 
 void Text::dispatch(Cursor & cur, FuncRequest & cmd)
index 0a903cb8e08b31b01ddb7ce1a7e8cafc7fe990ee..eb79e13eaef1710cc55b5896e4ae554033525155 100644 (file)
@@ -133,7 +133,7 @@ string translateReadType(TextClass::ReadType rt)
        return string();
 }
 
-} // namespace anon
+} // namespace
 
 
 // This string should not be translated here,
@@ -282,7 +282,7 @@ LexerKeyword textClassTags[] = {
        { "tocdepth",          TC_TOCDEPTH }
 };
 
-} //namespace anon
+} // namespace
 
 
 bool TextClass::convertLayoutFormat(support::FileName const & filename, ReadType rt)
index 0d60e0bcdd4b1f02d86598e8d7bf8c97058fbd4a..f94accae67176f898c3fcce7f63ab485638f5909 100644 (file)
@@ -97,7 +97,7 @@ int numberOfHfills(Row const & row, ParagraphMetrics const & pm,
 }
 
 
-}
+} // namespace
 
 /////////////////////////////////////////////////////////////////////
 //
@@ -806,7 +806,7 @@ private:
        pos_type bodypos_;
 };
 
-} // anon namespace
+} // namespace
 
 /** This is the function where the hard work is done. The code here is
  * very sensitive to small changes :) Note that part of the
index 7830c6e1ef225f020906820c24cc5d2d674b827a..e2c28183ee9499601c418153ff2d253fb966bd1f 100644 (file)
@@ -46,7 +46,7 @@ namespace {
 
 typedef std::map<docstring, MyThes *> Thesauri;
 
-} // namespace anon
+} // namespace
 
 struct Thesaurus::Private
 {
index b1849fb920e127d5ddc9399b124b173d50cdfbd3..757196377a67441aad0b68e5f1921d62691d7b26 100644 (file)
@@ -584,8 +584,8 @@ QString const & CategorizedCombo::filter() const
        return d->filter_;
 }
 
-}  // namespace frontend
-}  // namespace lyx
+} // namespace frontend
+} // namespace lyx
 
 
 #include "moc_CategorizedCombo.cpp"
index f5dd963ffe89f2f673180e1ab5b03ffbfbd8cd9b..6036099e473e051e6c52e4edf0f4eba5ade98135 100644 (file)
@@ -54,7 +54,7 @@ QPalette::ColorRole role(ColorCode col)
        }
 }
 
-}
+} // namespace
 
 
 void ColorCache::init()
index c1b459bb0405e5d9feb4e4021c0816a7112dbf2c..de9a51c78f6f89490ed3fc7e22874e8ac581512b 100644 (file)
@@ -48,7 +48,7 @@ void DockView::keyPressEvent(QKeyEvent * ev)
 }
 
 
-} // frontend
-} // lyx
+} // namespace frontend
+} // namespace lyx
 
 #include "moc_DockView.cpp"
index 621368bdfce306a13030d60d8152e33f5a8b5574..3c54c2ad20c0dbc06963abe972e5bfcffc926dee 100644 (file)
@@ -61,7 +61,7 @@ protected Q_SLOTS:
        void onBufferViewChanged() {} //override
 };
 
-} // frontend
-} // lyx
+} // namespace frontend
+} // namespace lyx
 
 #endif // DOCK_VIEW_H
index 0e35ebb6cec5daae3bfa30f258164813b55cd2e9..ca7ca48162476ffa481c09d38f2ef02885ef8b5f 100644 (file)
@@ -314,9 +314,9 @@ void IconButton::animateShow(bool visible)
     }
 }
 
-}
+} // namespace frontend
 
-}
+} // namespace lyx
 
 #endif // QT_VERSION >= 0x040600
 
index ef6b45aa5fc7f6efe0a6bde78b66b458a0522f77..5a2a5428614537d9ae66bf0f75fd3da6483dd286 100644 (file)
@@ -107,7 +107,7 @@ private:
        QString m_oldText;
 };
 
-}
-}
+} // namespace frontend
+} // namespace lyx
 
 #endif // FANCYLINEEDIT_H
index eb80393c5289c77bd8719bca39081322ea5c76fb..c9320ec403bbbc7ca214c62b4d68bd12991281e2 100644 (file)
@@ -474,7 +474,7 @@ QString findImg(QString const & name)
        return img_name;
 }
 
-} // namespace anon
+} // namespace
 
 
 QString themeIconName(QString const & action)
@@ -2657,7 +2657,7 @@ namespace {
                const QFontInfo fi(font);
                return fi.fixedPitch();
        }
-}
+} // namespace
 
 
 QFont const GuiApplication::typewriterSystemFont()
index aa9f037d5db89104fca303f6bfa26df2a9b7c47b..ff7cc5d10ee421729b53d861ee6bac79a3973de8 100644 (file)
@@ -193,7 +193,7 @@ void fillComboColor(QComboBox * combo, QList<T> const & list)
        combo->addItem(qt_("Reset"), "inherit");
 }
 
-} // namespace anon
+} // namespace
 
 GuiCharacter::GuiCharacter(GuiView & lv)
        : GuiDialog(lv, "character", qt_("Text Style")), font_(ignore_font, ignore_language),
index 4c8d47e7f8c5eea6c3fb6a8b18acaeacd191f29c..1fa6aba835f1eb2bdc34167ae7a72a76ef7f5d54 100644 (file)
@@ -358,7 +358,7 @@ QString tidyHtml(QString input)
        converter.setHtml(input);
        return converter.toHtml("utf-8");
 }
-}
+} // namespace
 
 
 docstring const GuiClipboard::getAsText(TextType type) const
index f14ba879ad8aa21400d5db3f09f6f61bc371f696..c13bdfe5785f4e41a0eb31054ecc397a7a9f1b5e 100644 (file)
@@ -79,7 +79,7 @@ protected:
        }
 };
 
-} // end of anon
+} // namespace
 
 
 GuiCommandBuffer::GuiCommandBuffer(GuiView * view)
@@ -272,7 +272,7 @@ public:
        bool operator()(string const & s) const { return prefixIs(s, p); }
 };
 
-} // end of anon namespace
+} // namespace
 
 
 string const GuiCommandBuffer::historyUp()
index 0d7ad5d219aff74912db2f268a47c1c2aa257d62..683168c38a41c87f528aea61593ac7efa4379cb1 100644 (file)
@@ -177,7 +177,7 @@ string getDelimiterName(QListWidgetItem const * lwi)
 }
 
 
-} // anon namespace
+} // namespace
 
 
 GuiDelimiter::GuiDelimiter(GuiView & lv)
index 89cd1c944a315c63d3836516895e37b6bb3cc32a..e8d66ec3a3845b840b61971c5fb51a0c4063754d 100644 (file)
@@ -183,7 +183,7 @@ public:
        }
 };
 
-}
+} // namespace
 
 namespace frontend {
 namespace {
index f25f1940c437acf154a0299a621f60fdd458e94b..4f97d27b102ba6c4a19a81f179799fe48f327c3e 100644 (file)
@@ -52,7 +52,7 @@ string const guiErrorType(string const & s)
        return s;
 }
 
-} // namespace anon
+} // namespace
 
 namespace lyx {
 namespace frontend {
index f940a7301006fe1041409aa6a38f790d6593b619..07eb8fce2d50d11ba440516a61aec41380fd3f71 100644 (file)
@@ -80,7 +80,7 @@ char const * const origin_gui_strs[] = {
        N_("Top right"), N_("Bottom right"), N_("Baseline right")
 };
 
-} // namespace anon
+} // namespace
 
 
 GuiExternal::GuiExternal(GuiView & lv)
index f92222d52040a8a2efc84d208aadbdcbe3e78273..4f705330f9d33301d24d2dd2a5422d80b0bbd240 100644 (file)
@@ -234,7 +234,7 @@ QFont symbolFont(QString const & family, bool * ok)
        return font;
 }
 
-} // namespace anon
+} // namespace
 
 
 FontLoader::FontLoader()
@@ -370,7 +370,7 @@ QFont makeQFont(FontInfo const & f)
        return font;
 }
 
-} // anon namespace
+} // namespace
 
 
 GuiFontInfo::GuiFontInfo(FontInfo const & f)
index d1ee09a184f9378b872b81b3bcfcb424bf324975..1c00372b38cf89521c4cf3cea1e4c54063c2ee36 100644 (file)
@@ -41,7 +41,7 @@ uint qHash(lyx::docstring const & s)
                                s.size() * sizeof(lyx::docstring::value_type)));
 }
 
-}
+} // namespace std
 
 namespace lyx {
 namespace frontend {
@@ -84,7 +84,7 @@ inline QChar const ucs4_to_qchar(char_type const ucs4)
        LATTEST(is_utf16(ucs4));
        return QChar(static_cast<unsigned short>(ucs4));
 }
-} // anon namespace
+} // namespace
 
 
 GuiFontMetrics::GuiFontMetrics(QFont const & font)
index 5910ec88133f586fd7293c7769bcb6ac46ae64c2..c32ec2c61052f920d3c6e50c3da21c4b82592988 100644 (file)
@@ -77,7 +77,7 @@ size_t const rorigin_size = sizeof(rorigin_lyx_strs) / sizeof(char *);
 
 static string const autostr = N_("automatically");
 
-} // namespace anon
+} // namespace
 
 
 namespace lyx {
index 4bf50a094abc9430ecda699242cef05f938fdfd6..e9c2965381190d338a88ed56e619eff05a435d58 100644 (file)
@@ -24,8 +24,8 @@ namespace lyx {
        namespace frontend {
                bool operator==(lyx::docstring const & d, char const * c)
                  { return lyx::operator ==(d, c); }
-       }
-}
+       } // namespace frontend
+} // namespace lyx
 #endif
 
 
index 3ada4e6226155d9deb73d3c1b51ccbd63c4c821b..03c891d8efba92a6ea0b8c0122bf51b1b039bb5e 100644 (file)
@@ -121,6 +121,6 @@ private:
 };
 
 
-}
-}
+} // namespace frontend
+} // namespace lyx
 #endif //GUIIDLISTMODEL_H
index 08259ecd92b43a6e69e339ad2869b5d203adc3e8..c73fe7cede6e53c54741cf7226ecb78d1f925638 100644 (file)
@@ -213,4 +213,4 @@ bool GuiImage::scale(Params const & params)
 }
 
 } // namespace graphics
-} // lyx
+} // namespace lyx
index e33ce9b7ab4258f1e8870267541fc81fe1f774b0..5f2f4740c406fc8118deb7252f118e32d6034a56 100644 (file)
@@ -2030,7 +2030,7 @@ string const l10n_shortcut(docstring const & prettyname, string const & shortcut
        return split(l10n_format, '|');
 }
 
-} // namespace anon
+} // namespace
 
 
 void PrefFileformats::applyRC(LyXRC & rc) const
@@ -2262,7 +2262,7 @@ namespace {
                        }
                }
        }
-}
+} // namespace
 
 
 void PrefFileformats::updateViewers()
index 1176dc44e9f09a1e1140b4f5a47a6b16d20a53b5..3424d8f4516571203da971163f6bd1a8535bbb19 100644 (file)
@@ -58,7 +58,7 @@ bool DebugSorter(DebugMap const & a, DebugMap const & b)
 {
        return a.second < b.second;
 }
-}
+} // namespace
 
 
 GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
index f327bb5a644eabc7e6a43959503d99477435673f..d08689cd3cc85fcddfce113ae913bf8ee138fe6b 100644 (file)
@@ -192,7 +192,7 @@ QString getBlock(char_type c)
 }
 
 
-} // namespace anon
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////
index a21688693d3dc3279b7f89e47d736b60ad7af4af..d519548e075fcc81b707494196b73535d42186d8 100644 (file)
@@ -178,7 +178,7 @@ public:
        }
 };
 
-}
+} // namespace
 
 
 MenuButton::MenuButton(GuiToolbar * bar, ToolbarItem const & item, bool const sticky)
index 5ff15c8e49255b4a20ca74abde9f3b9f368bab86..a257bb72686a327a993c0c9b17745d75a7c9b466 100644 (file)
@@ -263,7 +263,7 @@ typedef map<string, GuiToolbar *> ToolbarMap;
 
 typedef shared_ptr<Dialog> DialogPtr;
 
-} // namespace anon
+} // namespace
 
 
 class GuiView::GuiViewPrivate
@@ -4358,7 +4358,7 @@ bool isValidName(string const & name)
                                cmpCStr(name.c_str())) != end_dialognames;
 }
 
-} // namespace anon
+} // namespace
 
 
 void GuiView::resetDialogs()
index f54d53157e6a0384783f7bf4c6b60dad8a6b96dc..2545a9660634a9baa792110229c7a2cf38210691 100644 (file)
@@ -56,7 +56,7 @@ Q_SIGNALS:
 };
 
 
-} // namesapce frontend
+} // namespace frontend
 } // namespace lyx
 
 #endif // LENGTHCOMBO_H
index a279100c242de0d5a30c14f25653e29ac5a1c8cc..c97d23d44c28ef05bbd19170a001b6b596b84ea0 100644 (file)
@@ -1890,7 +1890,7 @@ void MenuDefinition::expandEnvironmentSeparators(BufferView const * bv)
        }
 }
 
-} // namespace anon
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////
index 3d3e36819f615b5b4b97c4b89c3281e0cbe8ce08..63125d8c5c277ace085b4f9052e6aabe06a8d5a7 100644 (file)
@@ -91,7 +91,7 @@ double locstringToDouble(QString const & str)
        return res;
 }
 
-} // namespace anon
+} // namespace
 
 
 namespace frontend {
index 49b8b73b0ace5184766c38d89387ddcc82ee79f1..22b0f23ead20d78025e22ef09130f0491bc68c83 100644 (file)
@@ -160,8 +160,7 @@ typedef map<pid_t, InProgress>  InProgressProcesses;
 
 typedef InProgressProcesses::value_type InProgressProcess;
 
-} // namespace anon
-
+} // namespace
 
 
 namespace lyx {
@@ -379,7 +378,7 @@ void InProgress::stop() const
        }
 }
 
-} // namespace anon
+} // namespace
 
 
 namespace lyx {
@@ -507,7 +506,7 @@ private:
        string const snippet_;
 };
 
-} // namespace anon
+} // namespace
 
 PreviewLoader::Status
 PreviewLoader::Impl::status(string const & latex_snippet) const
@@ -569,7 +568,7 @@ private:
        string const & snippet_;
 };
 
-} // namespace anon
+} // namespace
 
 
 void PreviewLoader::Impl::remove(string const & latex_snippet)
index 177ce4d60d9ea77284c9d8d5f4200a8bd2170e11..3a214ca8d078edce75c3dc93510fc8f9f05d33ad 100644 (file)
@@ -75,7 +75,7 @@ string const subst_path(string const & input,
        return subst(input, placeholder, path2);
 }
 
-} // namespace anon
+} // namespace
 
 
 string const doSubstitution(InsetExternalParams const & params,
@@ -348,7 +348,7 @@ string const substituteCommands(InsetExternalParams const & params,
 string const substituteOptions(InsetExternalParams const & params,
                               string const & input, string const & format);
 
-} // namespace anon
+} // namespace
 
 
 void writeExternal(InsetExternalParams const & params,
@@ -553,7 +553,7 @@ string const substituteOptions(InsetExternalParams const & params,
        return output;
 }
 
-} // namespace anon
+} // namespace
 
 } // namespace external
 
index 651f2b61ec0b0052fe8e6ab3da49d823e43ec661..ae9148b4e859a4fe8aba5e3e4ca0188f059ea995 100644 (file)
@@ -516,7 +516,7 @@ void setOptionFactory(Template::Format & format, string const & transform,
                transform_class_not_found(lyxerr, transformer_class);
 }
 
-} // namespace anon
+} // namespace
 
 
 void Template::Format::readFormat(Lexer & lex)
index 2381241b9a28441557833e456b32997f6eab7c2b..4f85f9d479f00c202728b20dc39186dcee5ffb02 100644 (file)
@@ -78,7 +78,7 @@ namespace {
 typedef Translator<RotationData::OriginType, string> OriginTranslator;
 OriginTranslator const & originTranslator();
 
-} // namespace anon
+} // namespace
 
 
 void RotationData::origin(string const & o)
@@ -183,7 +183,7 @@ ostream & operator<<(ostream & os, RotationData::OriginType type)
        return os;
 }
 
-} // namespace anon
+} // namespace
 
 
 string const RotationLatexCommand::front_impl() const
@@ -337,7 +337,7 @@ void extractIt(boost::any const & any_factory,
                transformer = factory(data);
 }
 
-} // namespace anon
+} // namespace
 
 
 TransformCommand::ptr_type
@@ -426,7 +426,7 @@ OriginTranslator const & originTranslator()
        return translator;
 }
 
-} // namespace anon
+} // namespace
 
 } // namespace external
 } // namespace lyx
index 4b9dab5d6513f572ac7b1539031ce1cc52723500..a90511077365d563a34635cc79d4743a31560244 100644 (file)
@@ -642,7 +642,7 @@ namespace {
 
                return true;
        }
-}
+} // namespace
 
 
 void InsetBibtex::collectBibKeys(InsetIterator const & /*di*/) const
index 038065ffc0dc8b9a6ddf71d67fd47c08c15820c2..3ba96a29e817d14fb7616b36279a572f0d9974b7 100644 (file)
@@ -21,7 +21,7 @@ class BiblioInfo;
 namespace support {
        class FileName;
        class FileNamePairList;
-}
+} // namespace support
 
 /** Used to insert BibTeX's information
   */
index 28d79c08de85cea8355bde442e0fa9230fcff9b9..90523c5c08953db7d0fd950f8b4822653e8c5ca4 100644 (file)
@@ -92,7 +92,7 @@ BoxTranslatorLoc const & boxtranslator_loc()
        return translator;
 }
 
-} // namespace anon
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////////
index 32075d4cf52fe13ad9a7c5b0d49ba60e3f68bd3a..7123d81fe916266caae1b438f25fd0e66f279b77 100644 (file)
@@ -61,7 +61,7 @@ unsigned int const defaultLyxScale = 100;
 
 string defaultTemplateName;
 
-} // namespace anon
+} // namespace
 
 
 namespace lyx {
@@ -148,7 +148,7 @@ void clearIfNotFound(T & data, external::TransformID value,
                data = T();
 }
 
-} // namespace anon
+} // namespace
 
 
 void InsetExternalParams::settemplate(string const & name)
@@ -414,8 +414,7 @@ docstring screenLabel(InsetExternalParams const & params,
        return gui;
 }
 
-} // namespace anon
-
+} // namespace
 
 
 InsetExternal::InsetExternal(Buffer * buf)
@@ -553,7 +552,7 @@ graphics::Params get_grfx_params(InsetExternalParams const & eparams)
        return gparams;
 }
 
-} // namespace anon
+} // namespace
 
 
 static bool isPreviewWanted(InsetExternalParams const & params)
index 6e8ad051b864d8a57a04403fcfc7aa1667da940c..3cc550b57338bd43343baa32316460bb665b6154 100644 (file)
@@ -165,7 +165,7 @@ void readInsetGraphics(Lexer & lex, Buffer const & buf, bool allowOrigin,
        }
 }
 
-} // namespace anon
+} // namespace
 
 
 InsetGraphics::InsetGraphics(Buffer * buf)
@@ -559,7 +559,7 @@ string const stripExtensionIfPossible(string const & file, string const & to, bo
        return latex_path(file, EXCLUDE_EXTENSION);
 }
 
-} // namespace anon
+} // namespace
 
 
 string InsetGraphics::prepareFile(OutputParams const & runparams) const
index 88ded43e1bb0f9ffe7aac7450deec0c6e4575cf4..5bd858a1a1975e7d7946083edc51203cd7e8f82d 100644 (file)
@@ -155,7 +155,7 @@ namespace graphics {
        void unifyGraphicsGroups(Buffer &, std::string const &);
        InsetGraphics * getCurrentGraphicsInset(Cursor const &);
 
-}
+} // namespace graphics
 
 } // namespace lyx
 
index 06296ed3a12be3b2db007c7b5ff0cf02043d6c7b..cbc3abf525bb491d0b2b8e0d573c521895fa49d3 100644 (file)
@@ -94,7 +94,7 @@ IPACharTranslator const & ipachartranslator()
        return chartranslator;
 }
 
-} // anon
+} // namespace
 
 
 InsetIPADecoParams::InsetIPADecoParams()
index e8f17503f6d740738e893527b329fc73aa0308d1..f966fbcf3046899c1e6a7bb28584730f86ee10b4 100644 (file)
@@ -165,7 +165,7 @@ InsetLabel * createLabel(Buffer * buf, docstring const & label_str)
        return new InsetLabel(buf, icp);
 }
 
-} // namespace anon
+} // namespace
 
 
 InsetInclude::InsetInclude(Buffer * buf, InsetCommandParams const & p)
@@ -1209,7 +1209,7 @@ void add_preview(RenderMonitoredPreview & renderer, InsetInclude const & inset,
        }
 }
 
-} // namespace anon
+} // namespace
 
 
 void InsetInclude::addPreview(DocIterator const & /*inset_pos*/,
index 0442536d1ebe1df7d278d935ff0e234360173f7d..219954d4e320d86562276601813f90cdfa18f1d6 100644 (file)
@@ -690,7 +690,7 @@ bool operator<(IndexEntry const & lhs, IndexEntry const & rhs)
        return (comp < 0);
 }
 
-} // anon namespace
+} // namespace
 
 
 docstring InsetPrintIndex::xhtml(XHTMLStream &, OutputParams const & op) const
index dc562d6f6db6c713b0eb0cfbbf6cf338bcf8c80b..42e0f6cda23b9695af7e9b67d85a03d0ca8cf15d 100644 (file)
@@ -81,7 +81,7 @@ NameTranslator const & nameTranslator()
        return translator;
 }
 
-} // namespace anon
+} // namespace
 
 /////////////////////////////////////////////////////////////////////////
 //
index b27963d88efa388bf2bc42d6115b5a8bee0d4ddf..621e784174c5f605953201a2ea100039fa9b8fce 100644 (file)
@@ -74,7 +74,7 @@ InsetLayout::InsetLaTeXType translateLaTeXType(std::string const & str)
        return InsetLayout::ILT_ERROR;
 }
 
-} // namespace anon
+} // namespace
 
 
 bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
index 1f1ad4a4d2e1a65349c6e098d720b47a379f2280..ea7eeb699f6e5cddfb742d78cbff4a8299549c2c 100644 (file)
@@ -959,7 +959,7 @@ bool ParValidator::onoff(string const & name) const
                return false;
 }
 
-} // namespace anon.
+} // namespace
 
 // define a global ParValidator
 ParValidator * par_validator = 0;
index 74d1387599290e43762a6ce4726a41ec5bf8d368..6d234e6ab37ed48f47a9a6634e0bb2807ef2d334 100644 (file)
@@ -388,7 +388,7 @@ docstring nomenclWidest(Buffer const & buffer, OutputParams const & runparams)
                        << "' in nomencl widest string!");
        return latex_symb.first;
 }
-} // namespace anon
+} // namespace
 
 
 void InsetPrintNomencl::latex(otexstream & os, OutputParams const & runparams_in) const
index 87dfdf2f430934cead0d19435ba630f2d3c092b0..1ee573c9e6352d9a11c6ef9886ebf278c50881d8 100644 (file)
@@ -69,7 +69,7 @@ NoteTranslator const & notetranslator()
 }
 
 
-} // anon
+} // namespace
 
 
 InsetNoteParams::InsetNoteParams()
index 8a156ea2f1f9064fe248db00dedce608d39b5558..2a004fa6f887c0a90ab32c6f33acc18140b92969 100644 (file)
@@ -85,7 +85,7 @@ PhantomTranslatorLoc const & phantomtranslator_loc()
        return translator;
 }
 
-} // anon
+} // namespace
 
 
 InsetPhantomParams::InsetPhantomParams()
index 55d30bf26e81064b16ebf9b59110b10f6a3d6751..8292ec96c4c714e47e97803abd57cf65ed265e40 100644 (file)
@@ -75,7 +75,7 @@ char const * const style_char = "esgpcaqbwfirjkx";
 char const * const side_char = "lr" ;
 char const * const level_char = "sd";
 
-} // namespace anon
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////
index d7df73c53257f2051c75d21524499296029d102e..4a49cfbac83d964963fc01d84829bda0e2a564b7 100644 (file)
@@ -84,7 +84,7 @@ void capitalize(docstring & s) {
        s[0] = t;
 }
 
-}
+} // namespace
 
 
 // the ref argument is the label name we are referencing.
index fec226fe3a52b6c2f6ce53becde410bf82d68b0b..44665a439b022d698280d98a386da92be7ebb905 100644 (file)
@@ -81,7 +81,7 @@ ScriptTranslatorLoc const & scripttranslator_loc()
        return translator;
 }
 
-} // anon
+} // namespace
 
 
 InsetScriptParams::InsetScriptParams()
index bbf54cf04c9ce9b7a8301e00bdcc06d494e4cf03..1267a75b376c499dfb5c80bc50c9e084011e578b 100644 (file)
@@ -84,7 +84,7 @@ int logoWidth(FontInfo const & font, InsetSpecialChar::Kind kind) {
        return width;
 }
 
-}
+} // namespace
 
 docstring InsetSpecialChar::toolTip(BufferView const &, int, int) const
 {
@@ -248,7 +248,7 @@ void drawLogo(PainterInfo & pi, int & x, int const y, InsetSpecialChar::Kind kin
        }
 }
 
-}
+} // namespace
 
 void InsetSpecialChar::draw(PainterInfo & pi, int x, int y) const
 {
index 3726c05904982081e2cfbf61382930d72afac7b2..29b7540cc277cbb2c690e5f15a2a2e50e4b49b12 100644 (file)
@@ -45,7 +45,7 @@ string cmd2type(string const & cmd)
                return "listing";
        return cmd;
 }
-}
+} // namespace
 
 
 InsetTOC::InsetTOC(Buffer * buf, InsetCommandParams const & p)
index 5083ebd6b86694b8ee87ebe38f3f87a4003d6a99..891d932eb748c286b50767eca2e59c62d0beff6c 100644 (file)
@@ -1146,7 +1146,7 @@ void toggleFixedWidth(Cursor & cur, InsetTableCell * inset, bool fixedWidth)
        cur.pop();
 }
 
-}
+} // namespace
 
 
 void Tabular::setColumnPWidth(Cursor & cur, idx_type cell,
index 65ea92b8a09b2c9b3da2d398a2e9dd300db2ac5a..4cdd1ba6edd37dfbdca46ea36db7e0770bbbefc8 100644 (file)
@@ -46,7 +46,7 @@ namespace {
 
 int const ADD_TO_VSPACE_WIDTH = 5;
 
-} // namespace anon
+} // namespace
 
 
 InsetVSpace::InsetVSpace(VSpace const & space)
index d48e4771e973e4f725aadbd8c01ace39955f5ec1..52e9803133e22b4fec55dc3a7d225223f47cc9c5 100644 (file)
@@ -132,7 +132,7 @@ bool readyToDisplay(graphics::Loader const & loader)
        return loader.image()->isDrawable();
 }
 
-} // namespace anon
+} // namespace
 
 
 void RenderGraphic::metrics(MetricsInfo & mi, Dimension & dim) const
index 64a5eb58adcc4f7194fbb4320fe26dbc100b485d..df0ac64d7e8bd67be8bd99fc68e262c63a5e8bc3 100644 (file)
@@ -116,7 +116,7 @@ docstring const statusMessage(BufferView const * bv, string const & snippet)
        return message;
 }
 
-} // namespace anon
+} // namespace
 
 
 graphics::PreviewImage const *
index 9665e09fe2c95a8a54d780fee444d9a3fb91bb17..f71d009dbd443cfa67f51b9b1db5d11e641381ce 100644 (file)
@@ -204,7 +204,7 @@ LaTeXLength table[] = {
 };
 
 
-} // namespace anon
+} // namespace
 
 
 const char * stringFromUnit(int unit)
index 3c30d23f740102451a4f38f318f46001f859c607..4b8da77ac0c33ff572c4af9904d64b7d0609d7b0 100644 (file)
@@ -303,7 +303,7 @@ pair<bool, int> replaceOne(BufferView * bv, docstring searchstr,
        return make_pair(true, 1);
 }
 
-} // namespace anon
+} // namespace
 
 
 docstring const find2string(docstring const & search,
@@ -517,7 +517,7 @@ bool findChange(BufferView * bv, bool forward)
        return selectChange(cur, forward);
 }
 
-}
+} // namespace
 
 bool findNextChange(BufferView * bv)
 {
@@ -1338,7 +1338,7 @@ int findBackwardsAdv(DocIterator & cur, MatchStringAdv & match)
 }
 
 
-} // anonym namespace
+} // namespace
 
 
 docstring stringifyFromForSearch(FindAndReplaceOptions const & opt,
@@ -1419,7 +1419,7 @@ static void changeFirstCase(Buffer & buffer, TextCase first_case, TextCase other
        pit->changeCase(buffer.params(), pos_type(1), right, others_case);
 }
 
-} // anon namespace
+} // namespace
 
 ///
 static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, MatchStringAdv & matchAdv)
@@ -1612,4 +1612,4 @@ istringstream & operator>>(istringstream & is, FindAndReplaceOptions & opt)
        return is;
 }
 
-} // lyx namespace
+} // namespace lyx
index 47792498915e4737d09c02d77a391e2d57703417..908a887eebb5bbea01d8a944d3885293b42a2acc 100644 (file)
@@ -209,7 +209,7 @@ namespace {
                        buildTranslationMap(t);
                return t;
        }
-}
+} // namespace
 
 void InsetMathDecoration::mathmlize(MathStream & os) const
 {
index 9e4f25bbbd992c2dbeeda56af91178f532aaa17a..90d61913a678236f8582b2b2fb3cb61da1ee1195 100644 (file)
@@ -171,8 +171,7 @@ latexkeys const * slash_symbol()
        return in_word_set(from_ascii("slash"));
 }
 
-} // anon namespace
-
+} // namespace
 
 
 void InsetMathFrac::metrics(MetricsInfo & mi, Dimension & dim) const
index f4005d91242e640d4907136dae53243829052034..01501929c642f5b3d5078a715292cfd3f5ecc46a 100644 (file)
@@ -151,7 +151,7 @@ namespace {
        }
 
 
-} // end anon namespace
+} // namespace
 
 
 HullType hullType(docstring const & s)
@@ -280,7 +280,7 @@ void InsetMathHull::setBuffer(Buffer & buffer)
 namespace {
        const char * counters_to_save[] = {"section", "chapter"};
        unsigned int const numcnts = sizeof(counters_to_save)/sizeof(char *);
-}
+} // namespace
 
 
 void InsetMathHull::updateBuffer(ParIterator const & it, UpdateType utype)
@@ -2020,7 +2020,7 @@ bool allowDisplayMath(Cursor const & cur)
        return tmpcur.getStatus(cmd, status) && status.enabled();
 }
 
-}
+} // namespace
 
 
 bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
index 2638fefdb877f67c236fa65f52729ee8bc66c545..cdc5637282e0d817d49530defbdb5bb87b0e7dbb 100644 (file)
@@ -36,7 +36,7 @@ using namespace std;
 namespace {
        /// x spacing between the nucleus and the scripts
        int const dx = 2;
-}
+} // namespace
 
 
 namespace lyx {
index 4f88ecd04dd4c260561c5aaab59557a7a28cca7e..88aae1d4a66a85771e783ba88e7aa93b58a561d6 100644 (file)
@@ -75,7 +75,7 @@ SpaceInfo space_info[] = {
 int const nSpace = sizeof(space_info)/sizeof(SpaceInfo);
 int const defaultSpace = 4;
 
-} // anon namespace
+} // namespace
 
 InsetMathSpace::InsetMathSpace()
        : space_(defaultSpace)
index 8f1d5b8f40d97fcce993c146bad9835358a0f9aa..fc4ad440d20919fd5576c3b6820a57710dd2d079 100644 (file)
@@ -169,7 +169,7 @@ void initAutoCorrect()
 }
 
 
-} // namespace anon
+} // namespace
 
 
 bool math_autocorrect(MathAtom & at, char_type c)
index 425e260f382e3fe1553828bdba80047bd04c89ea..52fa0cf0fa831fa4913810bb900519f87d009faa 100644 (file)
@@ -1391,9 +1391,9 @@ namespace {
                return res;
        }
 
-}
+} // namespace
 
-} // anon namespace
+} // namespace
 
 void write(MathData const & dat, WriteStream & wi)
 {
index cebac7c9ccb40cc04ec70191d2098b88b1e882bd..2d65f78d497ce1b2f791ec604f11353346fd3cfc 100644 (file)
@@ -347,7 +347,7 @@ bool isSpecialChar(docstring const & name)
 }
 
 
-} // namespace anon
+} // namespace
 
 MathWordList const & mathedWordList()
 {
index 8d76265be1f7c3ee5cb7c47a9fdb2fefe1ef8d86..71e7a5234aeb652b214f3cb6b0d3bac9d7101940 100644 (file)
@@ -140,7 +140,7 @@ void drawMarkers(PainterInfo const & pi, MathRow::Element const & e,
        }
 }
 
-}
+} // namespace
 
 
 MathRow::MathRow(MetricsInfo & mi, MathData const * ar)
index 086d219c56f95cfc2bdf1e980d47c4bd8f450daf..bb6a21c74d74ce9e302b18c5982a51f1cadfc63b 100644 (file)
@@ -505,7 +505,7 @@ deco_struct const * search_deco(docstring const & name)
 }
 
 
-} // namespace anon
+} // namespace
 
 
 int mathed_font_em(FontInfo const & font)
index f1369e5790fd37ecceabbe2820c586bfa9424d3b..c06cd9efa4396134b6a0418e479c73e1875a0296 100644 (file)
@@ -40,7 +40,7 @@ bool doOpenFileWrite(OFStream & ofs, FileName const & fname)
        return false;
 }
 
-}
+} // namespace
 
 
 bool openFileWrite(ofstream & ofs, FileName const & fname)
index 3cf2b9a9542667689c41bbb59377a822a4656bb0..6ed409c5dda04c69eafadcf2e0f3131bd2fa4abe 100644 (file)
@@ -312,7 +312,7 @@ ParagraphList::const_iterator makeCommand(
        return pend;
 }
 
-} // end anonym namespace
+} // namespace
 
 
 void docbookParagraphs(Text const & text,
index 3f608edbb78dfdbb3faa106e76d9b907c3161358..4ef1d456243f87ad140c8973b6ac299210a6b299 100644 (file)
@@ -510,7 +510,7 @@ void getArgInsets(otexstream & os, OutputParams const & runparams, Layout::LaTeX
 }
 
 
-} // namespace anon
+} // namespace
 
 
 void pushLanguageName(string const & lang_name, bool localswitch)
@@ -563,7 +563,7 @@ void addArgInsets(Paragraph const & par, string const & prefix,
        }
 }
 
-} // anon namespace
+} // namespace
 
 
 void latexArgInsets(Paragraph const & par, otexstream & os,
@@ -666,7 +666,7 @@ void parStartCommand(Paragraph const & par, otexstream & os,
        }
 }
 
-} // namespace anon
+} // namespace
 
 // FIXME: this should be anonymous
 void TeXOnePar(Buffer const & buf,
index 27d8029d13eb6a2c91a3592c66fc73059d726b9c..bfe375ffa214af32b0b23cfb28ea9aca98097e32 100644 (file)
@@ -328,7 +328,7 @@ void XHTMLStream::writeError(std::string const & s) const
 namespace {
        // an illegal tag for internal use
        static html::StartTag const parsep_tag("&LyX_parsep_tag&");
-}
+} // namespace
 
 
 bool XHTMLStream::closeFontTags()
index 9d85c26200e1f9d0976fb94049127062d31327fa..2de7520341789cf9b860ed20b92aafe41694b477 100644 (file)
@@ -29,6 +29,6 @@ struct Revertible {
 typedef unique_ptr<Revertible> Changer;
 
 
-}
+} // namespace lyx
 
 #endif //LYX_CHANGER_H
index f6b14e0df49c51ae13c7af7f0acbfb4d68631fd9..f81c1d20a96764889df90f8a4219662543d79cdf 100644 (file)
@@ -94,7 +94,7 @@ private:
        pid_t pid_;
 };
 
-} // namespace anon
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////
@@ -513,8 +513,7 @@ bool running()
        return running_;
 }
 
-} // namespace ForkedCallsQueue
-
+} // namespace ForkedCallQueue
 
 
 /////////////////////////////////////////////////////////////////////
index 452c9792c4661a5a457bad0ad0c9d9740fdfb30a..8a4bf1d4aa40a9cc53a4e904fd73ff464eab4cbc 100644 (file)
@@ -201,7 +201,7 @@ ForkedCall::sigPtr add(std::string const & process);
 /// Query whether the queue is running a forked process now.
 bool running();
 
-}
+} // namespace ForkedCallQueue
 
 
 /**
index da1c3cc0b8fc14241fb654be683409a75aa8d978..26a320b2d243c753c727b19947aade5ebfe0457b 100644 (file)
@@ -127,7 +127,7 @@ void cleanTranslation(docstring & trans)
        }
 }
 
-} // lyx
+} // namespace lyx
 
 
 #ifdef ENABLE_NLS
@@ -167,7 +167,7 @@ string realCode(string code)
        }
        return string();
 }
-}
+} // namespace
 
 
 bool Messages::available(string const & c)
@@ -238,7 +238,7 @@ void StringTable::swapEnd()
 }
 
 
-} // namespace anon
+} // namespace
 
 bool Messages::readMoFile()
 {
index 75d6e1a2f87978818d97c34309d8c36642e4465a..4b91bba79af65a68269a71d1746c9d021567a40a 100644 (file)
@@ -55,7 +55,7 @@ namespace {
 Package package_;
 bool initialised_ = false;
 
-} // namespace anon
+} // namespace
 
 
 void init_package(string const & command_line_arg0,
@@ -101,7 +101,7 @@ string const & with_version_suffix();
 
 string const fix_dir_name(string const & name);
 
-} // namespace anon
+} // namespace
 
 
 Package::Package(string const & command_line_arg0,
@@ -247,7 +247,7 @@ string const & with_version_suffix()
        return program_suffix.empty() ? program_suffix : with_version_suffix;
 }
 
-} // namespace anon
+} // namespace
 
 
 FileName const & Package::top_srcdir()
@@ -799,7 +799,7 @@ string const relative_system_support_dir()
        return result;
 }
 
-} // namespace anon
+} // namespace
 
 } // namespace support
 } // namespace lyx
index a61abbd72befd7aa4d0561af8147279152b7b040..65bb78106cd95ab19477dc64505aaf47b2b51206 100644 (file)
@@ -78,7 +78,7 @@ RefChanger<X> make_change(X & ref, X const val)
 }
 
 
-}
+} // namespace lyx
 
 
 #endif //LYX_REFCHANGER_H
index 392f296e4ce64059d01f801cb89cd69014bb5aaa..2dbbba7c83010bdd6abcfdee2dc3accff12c33bc 100644 (file)
@@ -231,8 +231,7 @@ string const parsecmd(string const & incmd, string & infile, string & outfile,
        return trim(outcmd[0]);
 }
 
-} // namespace anon
-
+} // namespace
 
 
 int Systemcall::startscript(Starttype how, string const & what,
@@ -410,7 +409,7 @@ bool queryStopCommand(QString const & cmd)
                        1, 1, _("&Stop it"), _("Let it &run")) == 0;
 }
 
-}
+} // namespace
 
 
 bool SystemcallPrivate::waitWhile(State waitwhile, bool process_events, int timeout)
index 5a734ff931ae31460bcb8f36caeb8bca2c5ee1ee..e9b6a632771083f081d3cd9f5ab39c305748ecd8 100644 (file)
@@ -20,7 +20,7 @@ namespace lyx
        using std::placeholders::_2;
        using std::bind;
        using std::ref;
-}
+} // namespace
 
 
 #endif
index f95aa4b9d46c69bbe4c39dbf1ce58b6094017eb3..b1c554e0832988e274b6003746bf80cc6d6bc019 100644 (file)
@@ -37,7 +37,7 @@ To lexical_cast(From const & value, To const & defaultResult = To())
        }
 }
 
-}
+} // namespace
 
 
 namespace lyx {
index 16e3c796947db6a0053874ddebc30275a14177da..3026df09f203b005af601e954e77ca3ac98b9452 100644 (file)
@@ -77,7 +77,7 @@ DebugErrorItem errorTags[] = {
 
 int const numErrorTags = sizeof(errorTags)/sizeof(errorTags[0]);
 
-} // namespace anon
+} // namespace
 
 
 int Debug::levelCount()
index 16c4600e90ff5d46d6c2de3ba04d37dce3b81eed..f6b06d5c3eeb24e61b39389c7ef54699cc5d803a 100644 (file)
@@ -28,7 +28,7 @@ class ios_base;
 template<typename CharT, typename Traits> class basic_streambuf;
 typedef basic_streambuf<char, char_traits<char> > streambuf;
 
-}
+} // namespace std
 #endif
 
 
index 6642e09d5f78ee94bd27ba54a8980d4d436cf99f..04b57045b24d2fed98bea7c4bb1aa52359512deb 100644 (file)
@@ -307,7 +307,7 @@ private:
        string encoding_;
 };
 
-} // namespace anon
+} // namespace
 
 
 namespace lyx {
@@ -447,7 +447,7 @@ odocstream & operator<<(odocstream & os, char c)
 }
 #endif
 
-}
+} // namespace lyx
 
 
 #if ! defined(USE_WCHAR_T) && defined(__GNUC__)
index 460a9b7393011b7a0d23ff8f9780cc70dd908294..409c7557a85cbdd8a854f80f127a2f6c58dd0bee 100644 (file)
@@ -114,6 +114,6 @@ SetEnc setEncoding(std::string const & encoding);
 odocstream & operator<<(odocstream & os, SetEnc e);
 idocstream & operator<<(idocstream & os, SetEnc e);
 
-}
+} // namespace lyx
 
 #endif
index 95c86b3665f2877052e543556e25d382fcaffcba..496d4c0242202014e0d85f7d98cd6a5f47b1d2f0 100644 (file)
@@ -273,7 +273,7 @@ template<> char
 ctype<lyx::char_type>::do_narrow(const lyx::char_type, char) const { return 0; }
 template<> const lyx::char_type *
 ctype<lyx::char_type>::do_narrow(const lyx::char_type *, const lyx::char_type *, char, char *) const { return 0; }
-}
+} // namespace std
 
 
 namespace lyx {
@@ -820,6 +820,6 @@ namespace {
 /// make sure that our facets get used
 static locale_initializer initializer;
 
-}
-}
+} // namespace
+} // namespace lyx
 #endif
index 8ffab19c7ef14b9a8f2a4fe0b3cbd371ac68e3ff..68a70a9bb75560b7ffd553e03c13cee7d6e01624 100644 (file)
@@ -79,7 +79,7 @@ inline QChar const ucs4_to_qchar(char_type const ucs4)
 
 /// Maximum valid UCS4 code point
 char_type const ucs4_max = 0x10ffff;
-} // anon namespace
+} // namespace
 
 
 bool isLetterChar(char_type c)
@@ -233,7 +233,7 @@ Char ascii_tolower(Char c) {
        return c;
 }
 
-}
+} // namespace
 
 
 int compare_ascii_no_case(string const & s, string const & s2)
@@ -494,7 +494,7 @@ template<typename Char> struct local_ascii_lowercase {
        Char operator()(Char c) const { return ascii_tolower(c); }
 };
 
-} // end of anon namespace
+} // namespace
 
 
 docstring const lowercase(docstring const & a)
@@ -892,7 +892,7 @@ docstring const subst_string(docstring const & a,
        return lstr;
 }
 
-}
+} // namespace
 
 
 string const subst(string const & a, char oldchar, char newchar)
@@ -1108,7 +1108,7 @@ docstring const doSplit(docstring const & a, docstring & piece, Char delim)
        return tmp;
 }
 
-} // anon
+} // namespace
 
 
 string const split(string const & a, string & piece, char delim)
@@ -1259,7 +1259,7 @@ vector<docstring> wrapToVec(docstring const & str, int ind,
        return retval;
 }
 
-}
+} // namespace
 
 
 docstring wrap(docstring const & str, int const ind, size_t const width)
@@ -1367,7 +1367,7 @@ template<typename String> const String
        return str;
 }
 
-} // namespace anon
+} // namespace
 
 
 vector<string> const getVectorFromString(string const & str,
index 7ec661c29fd786f55c5dc8ad34a4c11ea5aa015d..9e4dbe2d75ffade1dc1c2e503444b60d823ded6d 100644 (file)
@@ -54,5 +54,5 @@ namespace std
        // Fixed in VC11:
        // http://connect.microsoft.com/VisualStudio/feedback/details/572376/msvc10-c-std-numpunct-has-a-hardcoded-dllimport-in-definition
 
-}
+} // namespace std
 #endif
index 5ee2bf902707de4fbe6220e411b543685497dfb7..ec84ed1394e6ae6ba48b9038af3093c42033605d 100644 (file)
@@ -104,6 +104,6 @@ string const python(bool reset)
        return command;
 }
 
-}
-}
-}
+} // namespace os
+} // namespace support
+} // namespace lyx
index 1de0da6ef195c50c58d6b2a7964c09ce9867b832..64436f115aff943bf1a90eb0172c876c532b277e 100644 (file)
@@ -208,7 +208,7 @@ BOOL terminate_handler(DWORD event)
        return FALSE;
 }
 
-} // namespace anon
+} // namespace
 
 void init(int argc, char ** argv[])
 {
index 7afa5db48e5594c41b4de0bc7d6ee889cd294cd8..5a6c21fe63e72e98ca31e278e1c56ab3b8ba5d5f 100644 (file)
@@ -43,7 +43,7 @@ namespace {
 int argc_ = 0;
 char ** argv_ = 0;
 
-} // namespace anon
+} // namespace
 
 void init(int argc, char ** argv[])
 {
index 9078f594d747c6c8b17e8326382acf14548ef985..8d521383f205e3dec828f379a5c1cb40bce0a68f 100644 (file)
@@ -97,7 +97,7 @@ BOOL terminate_handler(DWORD event)
        return FALSE;
 }
 
-} // namespace anon
+} // namespace
 
 void init(int argc, char ** argv[])
 {
index 362c12d38f21a6c0ab99d1cff766ff8561a3c11d..d20d4bb02042e77b566645878273161707180dd8 100644 (file)
@@ -154,7 +154,7 @@ void dump(long long sec, long long usec, unsigned long long count) {
                          << std::endl;
 }
 
-}
+} // namespace
 
 
 /* Helper class for gathering data. Instantiate this as a static
index 615fe4f2d2c947114e7c57bab236d932acf27e4b..96498708fcee8047a44ab9ada5c369bfbb7c2f53 100644 (file)
@@ -37,9 +37,9 @@ namespace regex_constants
 {
 using namespace LR_NS::regex_constants;
 using LR_NS::regex_constants::match_flag_type;
-}
+} // namespace regex_constants
 
-}
+} // namespace lyx
 
 #undef LR_NS
 
index 58b44f59b3cd09effa4e639ab22b62061855f12e..c7e9c55517d6eb4726244274cdbb0b79503bc9b5 100644 (file)
@@ -63,7 +63,7 @@ typedef basic_istream<char, char_traits<char> > istream;
 typedef basic_ostream<char, char_traits<char> > ostream;
 typedef basic_ostringstream<char, char_traits<char>, allocator<char> > ostringstream;
 
-} // namepace std
+} // namespace std
 
 #endif
 
index 2b0f21710a9ffc9008241547d5d6275793affcbf..b7dcf6f687df2e9beea24bff59733b9724029dfb 100644 (file)
@@ -53,7 +53,7 @@ namespace lyx {
        class FontMetrics {
                int em() const { return 0; };
        };
-       }
+       } // namespace frontend
 
        class FontInfo;
 
@@ -61,4 +61,4 @@ namespace lyx {
                static frontend::FontMetrics dummy;
                return dummy;
        }
-}
+} // namespace lyx
index 2620ddb5e44e895854d239cd1748b779088a7478..b5839827403ba688987636a2ebc523d5932a7902 100644 (file)
@@ -193,7 +193,7 @@ iconv_convert(IconvProcessor & processor, InType const * buf, size_t buflen)
        return vector<RetType>(tmp, tmp + bytes / sizeof(RetType));
 }
 
-} // anon namespace
+} // namespace
 
 
 IconvProcessor & utf8ToUcs4()
@@ -264,7 +264,7 @@ IconvProcessor & getProc(map<string, IconvProcessor> & processors,
                return it->second;
 }
 
-} //anon namespace
+} // namespace
 
 
 vector<char>
@@ -313,7 +313,7 @@ map<string, IconvProcessor> & ucs4To8bitProcessors()
        return *processors.localData();
 }
 
-}
+} // namespace
 
 vector<char>
 ucs4_to_eightbit(char_type const * ucs4str, size_t ls, string const & encoding)
index f9e049ca0eb023f39a90e0d0c741f877db02d31c..46f3bdd8b39129a09e0b41189e83e1e9d0380ff5 100644 (file)
@@ -48,7 +48,7 @@ template<class T, size_t N> struct _Unique_if<T[N]> {
        typedef void _Known_bound;
 };
 
-} //anon namespace
+} // namespace
 
 template<class T, class... Args>
 typename _Unique_if<T>::_Single_object
index 646108c3b766a9522267f0f905a94085e79fc280..7100c712d8c22971be4ff8ba1aab39ffdc1821ec 100644 (file)
@@ -25,8 +25,8 @@ void warning(docstring const & title, docstring const & message, bool const &)
        LYXERR0(title);
        LYXERR0(message);
 }
-}
-}
+} // namespace Alert
+} // namespace frontend
 
 bool LaTeXFeatures::isAvailable(std::string const &)
 {
@@ -38,7 +38,7 @@ bool Formats::isZippedFile(support::FileName const &) const
 {
        return false;
 }
-}
+} // namespace lyx
 
 
 using namespace lyx::support;
index 0384b6efa0e66bc844f7ea7022f78d1e0f507ce4..a265ec0e8f41dbeb5d2d9956185626ebd40e0b87 100644 (file)
@@ -56,7 +56,7 @@ namespace lyx {
        class FontMetrics {
                int em() const { return 0; };
        };
-       }
+       } // namespace frontend
 
        class FontInfo;
 
@@ -64,4 +64,4 @@ namespace lyx {
                static frontend::FontMetrics dummy;
                return dummy;
        }
-}
+} // namespace lyx
index 5a04cde46e0ff3db76078bcca41bcd3bc8760309..61685180bdd074b1f5e7f38e8b464f31432d85bc 100644 (file)
@@ -41,7 +41,7 @@ void end_deeper(ostream & os)
        os << "\n\\end_deeper";
 }
 
-}
+} // namespace
 
 
 bool operator==(TeXFont const & f1, TeXFont const & f2)
index 894aaf7e263044edbd83af1b481281cc2b0439f0..ec63b77da83e7c063724746427fa64be8c0c127e 100644 (file)
@@ -48,7 +48,7 @@ char_type getNewline(iparserdocstream & is, char_type c)
        return c;
 }
 
-}
+} // namespace
 
 //
 // Token
index 7c3bc4741b2fcb3ea10e6f7f3e71d23bea2f320c..15fbf8b3f36a0c13e46bbe59f287b904c3c8a6af 100644 (file)
@@ -42,8 +42,8 @@ namespace Alert {
        {
                cerr << to_utf8(title) << "\n" << to_utf8(message) << endl;
        }
-}
-}
+} // namespace Alert
+} // namespace frontend
 
 
 //
@@ -120,7 +120,7 @@ namespace frontend {
 class FontMetrics {
        int em() const { return 0; };
 };
-}
+} // namespace frontend
 
 class FontInfo;
 
@@ -136,4 +136,4 @@ frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
 void lyx_exit(int)
 {}
 
-}
+} // namespace lyx
index 65a2b91ea2f0d90ba82376f1f718d91f28912706..3c0bf819d31fdf2d007baaa7a078953cd586b4cc 100644 (file)
@@ -312,7 +312,7 @@ bool addModule(string const & module)
        return false;
 }
 
-}
+} // namespace
 
 
 bool checkModule(string const & name, bool command)
index 2e7f08a596d6560ac738d78c3da072e36c1a4877..2fe40bde05cadfbab9aa39ac4417e75b3e812609 100644 (file)
@@ -429,7 +429,7 @@ bool translate_len(string const & length, string & valstring, string & unit)
        return true;
 }
 
-}
+} // namespace
 
 
 string translate_len(string const & length)
index b31cafb0afbbe31f3afe52cf3b80bd1c535847dc..f8f298bdafeff2e98e31c2ca565d041cef37ce80 100644 (file)
@@ -355,4 +355,4 @@ template otexstream & operator<< <unsigned long>(otexstream &, unsigned long);
 template otexstream & operator<< <unsigned long long>(otexstream &, unsigned long long);
 #endif
 
-}
+} // namespace lyx
index bf4eb38bba81265c652d5ded86e9dfe0f858d1d8..2cfcd16da40379e3d9ad40147e56bd232a9fa205 100644 (file)
@@ -183,6 +183,6 @@ template <typename Type>
 otexstream & operator<<(otexstream & ots, Type value);
 
 
-}
+} // namespace lyx
 
 #endif
index 2950a894d1d6853fd0fbdfb76720ecdc0d0d4f63..3e877c1ca1339cfa35c3282c06691dc228ea28f6 100644 (file)
@@ -40,7 +40,7 @@ inline flags operator&(flags const f, flags const g)
        return static_cast<flags>(int(f) & int(g));
 }
 
-} // namespace
+} // namespace Update
 
 } // namespace lyx
 #endif