mosesdecoder/moses/TranslationModel/RuleTable
Jeroen Vermeulen 464615a0c3 Fix some clang++ warnings.
Compiling with clang++ at the default warning/error levels produces
some interesting warnings.  Here's a pair of fixes for the simplest
instances:

moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp:133:7:
warning: comparison of array 'path' equal to a null pointer is always
false [-Wtautological-pointer-compare]
  if (path == NULL) {
      ^~~~    ~~~~

(The code unnecessarily checks that an automatic variable has a
 non-null address).

moses/TranslationModel/DynSAInclude/onlineRLM.h:305:20:
warning: unsequenced modification and access to 'den_val' [-Wunsequenced]
  if(((den_val = query(&ngram[len - num_fnd], num_fnd - 1)) > 0) &&
               ^

(The code tries to cram too much into an "if" condition.)
2015-04-07 22:58:17 +07:00
..
Loader.h beautify 2013-05-29 18:16:15 +01:00
LoaderCompact.cpp beautify 2015-01-14 11:07:42 +00:00
LoaderCompact.h beautify 2013-05-29 18:16:15 +01:00
LoaderFactory.cpp delete UserMessage. Too difficult to police 2015-01-07 10:01:10 +04:00
LoaderFactory.h beautify 2013-05-29 18:16:15 +01:00
LoaderHiero.cpp beautify 2013-05-29 18:16:15 +01:00
LoaderHiero.h beautify 2013-05-29 18:16:15 +01:00
LoaderStandard.cpp Modernize "C" includes in moses. 2015-03-28 20:09:03 +07:00
LoaderStandard.h beautify 2013-05-29 18:16:15 +01:00
PhraseDictionaryALSuffixArray.cpp beautify 2015-01-14 11:07:42 +00:00
PhraseDictionaryALSuffixArray.h calculate m_featuresToApply in Load() for PhraseDictionary. Since every phrase dictionary now has to implement it, make Load() for PhraseDictionary abstract 2013-06-14 18:34:47 +01:00
PhraseDictionaryFuzzyMatch.cpp Fix some clang++ warnings. 2015-04-07 22:58:17 +07:00
PhraseDictionaryFuzzyMatch.h moses_chart: more efficient scope-3 parsing if sentence length < max-chart-span 2014-03-14 08:49:09 +00:00
PhraseDictionaryOnDisk.cpp use astyle 2.01. It's on Edinburgh server and doesn't screw up enum 2015-01-14 19:21:11 +00:00
PhraseDictionaryOnDisk.h delete PhraseTableImplementation. Old enum 2014-07-18 20:36:53 +01:00
Trie.cpp calculate m_featuresToApply in Load() for PhraseDictionary. Since every phrase dictionary now has to implement it, make Load() for PhraseDictionary abstract 2013-06-14 18:34:47 +01:00
Trie.h remove description argument from feature function constructor. Redundant 2013-10-29 18:20:55 +00:00
UTrie.cpp moses_chart: more efficient scope-3 parsing if sentence length < max-chart-span 2014-03-14 08:49:09 +00:00
UTrie.h moses_chart: more efficient scope-3 parsing if sentence length < max-chart-span 2014-03-14 08:49:09 +00:00
UTrieNode.cpp beautify 2013-05-29 18:16:15 +01:00
UTrieNode.h beautify 2013-05-29 18:16:15 +01:00