mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am b68e7344
: Cleanup the include paths
* commit 'b68e73448104714e8f12f89a1e00fb10b5fd14c4': Cleanup the include paths
This commit is contained in:
commit
bc2fd24fd3
@ -26,12 +26,7 @@ include $(CLEAR_VARS)
|
||||
LATIN_IME_SRC_DIR := src
|
||||
LATIN_IME_SRC_FULLPATH_DIR := $(LOCAL_PATH)/$(LATIN_IME_SRC_DIR)
|
||||
|
||||
LOCAL_C_INCLUDES += \
|
||||
$(LATIN_IME_SRC_FULLPATH_DIR) \
|
||||
$(LATIN_IME_SRC_FULLPATH_DIR)/suggest \
|
||||
$(LATIN_IME_SRC_FULLPATH_DIR)/suggest/core \
|
||||
$(addprefix $(LATIN_IME_SRC_FULLPATH_DIR)/suggest/core/, dicnode dictionary policy session) \
|
||||
$(addprefix $(LATIN_IME_SRC_FULLPATH_DIR)/suggest/policyimpl/, gesture typing)
|
||||
LOCAL_C_INCLUDES += $(LATIN_IME_SRC_FULLPATH_DIR)
|
||||
|
||||
LOCAL_CFLAGS += -Werror -Wall -Wextra -Weffc++ -Wformat=2 -Wcast-qual -Wcast-align \
|
||||
-Wwrite-strings -Wfloat-equal -Wpointer-arith -Winit-self -Wredundant-decls -Wno-system-headers
|
||||
@ -65,18 +60,20 @@ LATIN_IME_CORE_SRC_FILES := \
|
||||
proximity_info_state_utils.cpp \
|
||||
unigram_dictionary.cpp \
|
||||
words_priority_queue.cpp \
|
||||
suggest/core/dicnode/dic_node.cpp \
|
||||
suggest/core/dicnode/dic_nodes_cache.cpp \
|
||||
suggest/core/dicnode/dic_node_utils.cpp \
|
||||
$(addprefix suggest/core/dicnode/, \
|
||||
dic_node.cpp \
|
||||
dic_node_utils.cpp \
|
||||
dic_nodes_cache.cpp) \
|
||||
suggest/core/suggest.cpp \
|
||||
suggest/core/policy/weighting.cpp \
|
||||
suggest/core/session/dic_traverse_session.cpp \
|
||||
suggest/core/suggest.cpp \
|
||||
suggest/policyimpl/gesture/gesture_suggest_policy_factory.cpp \
|
||||
suggest/policyimpl/typing/scoring_params.cpp \
|
||||
suggest/policyimpl/typing/typing_scoring.cpp \
|
||||
suggest/policyimpl/typing/typing_suggest_policy.cpp \
|
||||
suggest/policyimpl/typing/typing_traversal.cpp \
|
||||
suggest/policyimpl/typing/typing_weighting.cpp
|
||||
$(addprefix suggest/policyimpl/typing/, \
|
||||
scoring_params.cpp \
|
||||
typing_scoring.cpp \
|
||||
typing_suggest_policy.cpp \
|
||||
typing_traversal.cpp \
|
||||
typing_weighting.cpp)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
$(LATIN_IME_JNI_SRC_FILES) \
|
||||
|
@ -16,12 +16,12 @@
|
||||
|
||||
#define LOG_TAG "LatinIME: jni"
|
||||
|
||||
#include "jni_common.h"
|
||||
|
||||
#include "com_android_inputmethod_keyboard_ProximityInfo.h"
|
||||
#include "com_android_inputmethod_latin_BinaryDictionary.h"
|
||||
#include "com_android_inputmethod_latin_DicTraverseSession.h"
|
||||
#include "defines.h"
|
||||
#include "jni.h"
|
||||
#include "jni_common.h"
|
||||
|
||||
/*
|
||||
* Returns the JNI version on success, -1 on failure.
|
||||
|
@ -16,17 +16,18 @@
|
||||
|
||||
#define LOG_TAG "LatinIME: dictionary.cpp"
|
||||
|
||||
#include "dictionary.h"
|
||||
|
||||
#include <map> // TODO: remove
|
||||
#include <stdint.h>
|
||||
|
||||
#include "bigram_dictionary.h"
|
||||
#include "binary_format.h"
|
||||
#include "defines.h"
|
||||
#include "dictionary.h"
|
||||
#include "dic_traverse_wrapper.h"
|
||||
#include "gesture_suggest_policy_factory.h"
|
||||
#include "suggest.h"
|
||||
#include "typing_suggest_policy_factory.h"
|
||||
#include "suggest/core/suggest.h"
|
||||
#include "suggest/policyimpl/gesture/gesture_suggest_policy_factory.h"
|
||||
#include "suggest/policyimpl/typing/typing_suggest_policy_factory.h"
|
||||
#include "unigram_dictionary.h"
|
||||
|
||||
namespace latinime {
|
||||
|
@ -18,7 +18,7 @@
|
||||
#define LATINIME_SHORTCUT_UTILS
|
||||
|
||||
#include "defines.h"
|
||||
#include "dic_node_utils.h"
|
||||
#include "suggest/core/dicnode/dic_node_utils.h"
|
||||
#include "terminal_attributes.h"
|
||||
|
||||
namespace latinime {
|
||||
|
@ -20,6 +20,9 @@
|
||||
#include "defines.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
class DicTraverseSession;
|
||||
|
||||
class Traversal {
|
||||
public:
|
||||
virtual int getMaxPointerCount() const = 0;
|
||||
|
@ -14,14 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "suggest/core/policy/weighting.h"
|
||||
|
||||
#include "char_utils.h"
|
||||
#include "defines.h"
|
||||
#include "dic_node.h"
|
||||
#include "dic_node_profiler.h"
|
||||
#include "dic_node_utils.h"
|
||||
#include "dic_traverse_session.h"
|
||||
#include "hash_map_compat.h"
|
||||
#include "weighting.h"
|
||||
#include "suggest/core/dicnode/dic_node.h"
|
||||
#include "suggest/core/dicnode/dic_node_profiler.h"
|
||||
#include "suggest/core/dicnode/dic_node_utils.h"
|
||||
#include "suggest/core/session/dic_traverse_session.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
#define LATINIME_WEIGHTING_H
|
||||
|
||||
#include "defines.h"
|
||||
#include "hash_map_compat.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -14,12 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "suggest/core/session/dic_traverse_session.h"
|
||||
|
||||
#include "defines.h"
|
||||
#include "dictionary.h"
|
||||
#include "dic_node_utils.h"
|
||||
#include "dic_traverse_session.h"
|
||||
#include "dic_traverse_wrapper.h"
|
||||
#include "jni.h"
|
||||
#include "suggest/core/dicnode/dic_node_utils.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -21,10 +21,10 @@
|
||||
#include <vector>
|
||||
|
||||
#include "defines.h"
|
||||
#include "dic_nodes_cache.h"
|
||||
#include "hash_map_compat.h"
|
||||
#include "jni.h"
|
||||
#include "proximity_info_state.h"
|
||||
#include "suggest/core/dicnode/dic_nodes_cache.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -14,18 +14,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "suggest/core/suggest.h"
|
||||
|
||||
#include "char_utils.h"
|
||||
#include "dictionary.h"
|
||||
#include "dic_node_priority_queue.h"
|
||||
#include "dic_node_vector.h"
|
||||
#include "dic_traverse_session.h"
|
||||
#include "proximity_info.h"
|
||||
#include "scoring.h"
|
||||
#include "shortcut_utils.h"
|
||||
#include "suggest.h"
|
||||
#include "suggest/core/dicnode/dic_node.h"
|
||||
#include "suggest/core/dicnode/dic_node_priority_queue.h"
|
||||
#include "suggest/core/dicnode/dic_node_vector.h"
|
||||
#include "suggest/core/dictionary/shortcut_utils.h"
|
||||
#include "suggest/core/policy/scoring.h"
|
||||
#include "suggest/core/policy/traversal.h"
|
||||
#include "suggest/core/policy/weighting.h"
|
||||
#include "suggest/core/session/dic_traverse_session.h"
|
||||
#include "terminal_attributes.h"
|
||||
#include "traversal.h"
|
||||
#include "weighting.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
#define LATINIME_SUGGEST_IMPL_H
|
||||
|
||||
#include "defines.h"
|
||||
#include "suggest_interface.h"
|
||||
#include "suggest_policy.h"
|
||||
#include "suggest/core/suggest_interface.h"
|
||||
#include "suggest/core/policy/suggest_policy.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "scoring_params.h"
|
||||
#include "suggest/policyimpl/typing/scoring_params.h"
|
||||
|
||||
namespace latinime {
|
||||
// TODO: RENAME all
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "typing_scoring.h"
|
||||
#include "suggest/policyimpl/typing/typing_scoring.h"
|
||||
|
||||
namespace latinime {
|
||||
const TypingScoring TypingScoring::sInstance;
|
||||
|
@ -18,8 +18,8 @@
|
||||
#define LATINIME_TYPING_SCORING_H
|
||||
|
||||
#include "defines.h"
|
||||
#include "scoring.h"
|
||||
#include "scoring_params.h"
|
||||
#include "suggest/core/policy/scoring.h"
|
||||
#include "suggest/policyimpl/typing/scoring_params.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "typing_suggest_policy.h"
|
||||
#include "suggest/policyimpl/typing/typing_suggest_policy.h"
|
||||
|
||||
namespace latinime {
|
||||
const TypingSuggestPolicy TypingSuggestPolicy::sInstance;
|
||||
|
@ -18,10 +18,10 @@
|
||||
#define LATINIME_TYPING_SUGGEST_POLICY_H
|
||||
|
||||
#include "defines.h"
|
||||
#include "suggest_policy.h"
|
||||
#include "typing_scoring.h"
|
||||
#include "typing_traversal.h"
|
||||
#include "typing_weighting.h"
|
||||
#include "suggest/core/policy/suggest_policy.h"
|
||||
#include "suggest/policyimpl/typing/typing_scoring.h"
|
||||
#include "suggest/policyimpl/typing/typing_traversal.h"
|
||||
#include "suggest/policyimpl/typing/typing_weighting.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "typing_traversal.h"
|
||||
#include "suggest/policyimpl/typing/typing_traversal.h"
|
||||
|
||||
namespace latinime {
|
||||
const bool TypingTraversal::CORRECT_OMISSION = true;
|
||||
|
@ -21,12 +21,12 @@
|
||||
|
||||
#include "char_utils.h"
|
||||
#include "defines.h"
|
||||
#include "dic_node.h"
|
||||
#include "dic_node_vector.h"
|
||||
#include "dic_traverse_session.h"
|
||||
#include "proximity_info_state.h"
|
||||
#include "scoring_params.h"
|
||||
#include "traversal.h"
|
||||
#include "suggest/core/dicnode/dic_node.h"
|
||||
#include "suggest/core/dicnode/dic_node_vector.h"
|
||||
#include "suggest/core/policy/traversal.h"
|
||||
#include "suggest/core/session/dic_traverse_session.h"
|
||||
#include "suggest/policyimpl/typing/scoring_params.h"
|
||||
|
||||
namespace latinime {
|
||||
class TypingTraversal : public Traversal {
|
||||
|
@ -14,9 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "dic_node.h"
|
||||
#include "scoring_params.h"
|
||||
#include "typing_weighting.h"
|
||||
#include "suggest/policyimpl/typing/typing_weighting.h"
|
||||
|
||||
#include "suggest/core/dicnode/dic_node.h"
|
||||
#include "suggest/policyimpl/typing/scoring_params.h"
|
||||
|
||||
namespace latinime {
|
||||
const TypingWeighting TypingWeighting::sInstance;
|
||||
|
@ -18,9 +18,10 @@
|
||||
#define LATINIME_TYPING_WEIGHTING_H
|
||||
|
||||
#include "defines.h"
|
||||
#include "dic_node_utils.h"
|
||||
#include "dic_traverse_session.h"
|
||||
#include "weighting.h"
|
||||
#include "suggest/core/dicnode/dic_node_utils.h"
|
||||
#include "suggest/core/policy/weighting.h"
|
||||
#include "suggest/core/session/dic_traverse_session.h"
|
||||
#include "suggest/policyimpl/typing/scoring_params.h"
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user